Compare commits
6 Commits
0aca810bc9
...
master
Author | SHA1 | Date | |
---|---|---|---|
dd21cdf8ef | |||
|
770758cb4d | ||
d3dd8540f5 | |||
c51f1ba6b7 | |||
d556f7a71d | |||
9613d10b33 |
9
clean_known_hosts.yml
Normal file
9
clean_known_hosts.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
#become: yes
|
||||||
|
tasks:
|
||||||
|
- name: Show contents of known_hosts file
|
||||||
|
shell: |
|
||||||
|
echo '@cert-authority * ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHKIoXTMdFFpDfJOt7HUQxFOJv+2Di2qzwseBkclxoZ4 CA key for CIT HPC clusters' > /var/lib/awx/.ssh/known_hosts
|
||||||
|
ignore_errors: yes
|
||||||
|
delegate_to: 127.0.0.1
|
@@ -1,8 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Echo
|
|
||||||
hosts: peregrine
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: Print hello
|
|
||||||
debug:
|
|
||||||
msg: Hello, world!
|
|
9
hugin_in_etc_hosts.yml
Normal file
9
hugin_in_etc_hosts.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
tasks:
|
||||||
|
- name: Add hugin to /etc/hosts
|
||||||
|
ansible.builtin.lineinfile:
|
||||||
|
line: '195.169.22.139 hugin'
|
||||||
|
path: /etc/hosts
|
||||||
|
state: present
|
||||||
|
delegate_to: 127.0.0.1
|
Reference in New Issue
Block a user