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
|
ansible-galaxy collection install -r ./collections/requirements.yml --force
|
||||||
|
|
||||||
.PHONY: ping
|
.PHONY: ping
|
||||||
ping:
|
ping: galaxy
|
||||||
ansible -m ping all
|
ansible -m ping all
|
||||||
|
|
||||||
.PHONY: setup
|
.PHONY: setup
|
||||||
setup:
|
setup: galaxy
|
||||||
ansible -m setup all
|
ansible -m setup all
|
||||||
|
|
||||||
.PHONY: reboot
|
.PHONY: reboot
|
||||||
reboot:
|
reboot: galaxy
|
||||||
ansible -m reboot all
|
ansible -m reboot all
|
||||||
|
|
||||||
.PHONY: playbook
|
.PHONY: playbook
|
||||||
playbook:
|
playbook: galaxy
|
||||||
ansible-playbook test.yml
|
ansible-playbook test.yml
|
||||||
|
|
||||||
.PHONY: checkdiff
|
.PHONY: checkdiff
|
||||||
checkdiff:
|
checkdiff: galaxy
|
||||||
ansible-playbook test.yml --check --diff
|
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