Compare commits
3
Commits
58de00baa2
...
78b5d8c88f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78b5d8c88f
|
||
|
|
3de4d3c17c
|
||
|
|
01adbd4d18
|
@@ -21,22 +21,22 @@ collectionforce:
|
||||
ansible-galaxy collection install -r ./collections/requirements.yml --force
|
||||
|
||||
.PHONY: ping
|
||||
ping:
|
||||
ping: galaxy
|
||||
ansible -m ping all
|
||||
|
||||
.PHONY: setup
|
||||
setup:
|
||||
setup: galaxy
|
||||
ansible -m setup all
|
||||
|
||||
.PHONY: reboot
|
||||
reboot:
|
||||
reboot: galaxy
|
||||
ansible -m reboot all
|
||||
|
||||
.PHONY: playbook
|
||||
playbook:
|
||||
playbook: galaxy
|
||||
ansible-playbook test.yml
|
||||
|
||||
.PHONY: checkdiff
|
||||
checkdiff:
|
||||
checkdiff: galaxy
|
||||
ansible-playbook test.yml --check --diff
|
||||
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
---
|
||||
- name: 'all'
|
||||
hosts: 'all'
|
||||
gather_facts: false
|
||||
serial: 1
|
||||
tasks:
|
||||
- name: 'Remove known_host file entries'
|
||||
delegate_to: 'localhost'
|
||||
ansible.builtin.shell:
|
||||
ssh-keygen -f ~/.ssh/known_hosts -R {{ inventory_hostname }}
|
||||
- name: 'Add known_hosts file entries'
|
||||
delegate_to: 'localhost'
|
||||
ansible.builtin.shell:
|
||||
ssh-keyscan {{ inventory_hostname }} >> ~/.ssh/known_hosts
|
||||
...
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
roles:
|
||||
...
|
||||
Reference in New Issue
Block a user