Compare commits

..

8 Commits

Author SHA1 Message Date
dd21cdf8ef Merge pull request 'Another dirty playbook.' (#2) from egon into master
Reviewed-on: #2
Reviewed-by: B.E. Droge <b.e.droge@rug.nl>
2022-07-08 15:08:35 +02:00
Egon Rijpkema
770758cb4d Another dirty playbook. 2022-07-08 15:06:42 +02:00
d3dd8540f5 add key to known_hosts 2022-07-08 14:32:55 +02:00
c51f1ba6b7 Update 'clean_known_hosts.yml' 2022-06-13 17:07:00 +02:00
d556f7a71d Update 'clean_known_hosts.yml' 2022-06-13 17:04:21 +02:00
9613d10b33 run on all hosts 2022-04-01 13:08:10 +02:00
0aca810bc9 Merge pull request 'Test PR' (#1) from p251204-patch-1 into master
Reviewed-on: #1
Reviewed-by: G.J.C. Strikwerda <g.j.c.strikwerda@rug.nl>
2022-03-21 15:39:19 +01:00
b646315b22 Update 'hosts' 2022-03-21 15:37:49 +01:00
4 changed files with 20 additions and 9 deletions

9
clean_known_hosts.yml Normal file
View 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

View File

@@ -1,8 +0,0 @@
---
- name: Echo
hosts: peregrine
tasks:
- name: Print hello
debug:
msg: Hello, world!

3
hosts
View File

@@ -1,2 +1,3 @@
[peregrine]
pg-node123
pg-node123
pg-node124

9
hugin_in_etc_hosts.yml Normal file
View 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