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:
Felix Fontein
2021-09-08 09:43:35 +02:00
committed by GitHub
parent 451bc0e94e
commit 5a3ce51049
42 changed files with 190 additions and 139 deletions
@@ -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