Another dirty playbook.
This commit is contained in:
parent
d3dd8540f5
commit
fdf88eb2db
@ -1,9 +1,9 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
#become: yes
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Show contents of known_hosts file
|
- name: Add hugin to /etc/hosts
|
||||||
shell: |
|
ansible.builtin.lineinfile:
|
||||||
echo '@cert-authority * ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHKIoXTMdFFpDfJOt7HUQxFOJv+2Di2qzwseBkclxoZ4 CA key for CIT HPC clusters' > /var/lib/awx/.ssh/known_hosts
|
line: '195.169.22.139 hugin'
|
||||||
ignore_errors: yes
|
path: /etc/hosts
|
||||||
|
state: present
|
||||||
delegate_to: 127.0.0.1
|
delegate_to: 127.0.0.1
|
||||||
|
Loading…
Reference in New Issue
Block a user