mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 11:55:04 +00:00
Improve CI (#198)
* Use remote temp path, replace remote lookups. * Copy local files. * Change docker resource name prefix from ansible-test to ansible-docker-test to avoid collision with ansible-test's containers. * Fix typos. * We don't neceessarily have a TTY. * Use hopefully less collision-likely subnet. * More collision avoidance. * More changes.
This commit is contained in:
@@ -22,9 +22,17 @@
|
||||
command: ls -lah ~/.ssh
|
||||
ignore_errors: true
|
||||
|
||||
- name: Recover home directory on remote
|
||||
command: echo $HOME
|
||||
register: remote_home
|
||||
|
||||
- name: Print remote home directory
|
||||
debug:
|
||||
var: remote_home.stdout
|
||||
|
||||
- name: Create SSH config
|
||||
copy:
|
||||
dest: "{{ lookup('env', 'HOME') }}/.ssh/config"
|
||||
dest: "{{ remote_home.stdout }}/.ssh/config"
|
||||
mode: '0600'
|
||||
content: |
|
||||
Host localhost
|
||||
|
||||
Reference in New Issue
Block a user