This commit is contained in:
root 2023-10-12 19:18:54 +10:00
commit 97728c1201
5 changed files with 58 additions and 0 deletions

7
ansible.cfg Normal file
View File

@ -0,0 +1,7 @@
[defaults]
# Use the YAML callback plugin.
stdout_callback = yaml
# Use the stdout_callback when running ad-hoc commands.
bin_ansible_callbacks = True
host_key_checking = false

View File

@ -0,0 +1,4 @@
---
ansible_ssh_user: hogweed1
ansible_ssh_pass: coloredhorses
ansible_sudo_pass: coloredhorses

View File

@ -0,0 +1,18 @@
---
all: # keys must be unique, i.e. only one 'hosts' per group
hosts:
semyon-0x01.guaranteedstruggle.host:
semyon-0x02.guaranteedstruggle.host:
semyon-0x03.guaranteedstruggle.host:
semyon-0x04.guaranteedstruggle.host:
semyon-0x05.guaranteedstruggle.host:
samehost-zero.guaranteedstruggle.host:
puppets: # keys must be unique, i.e. only one 'hosts' per group
hosts:
semyon-0x01.guaranteedstruggle.host:
semyon-0x02.guaranteedstruggle.host:
semyon-0x03.guaranteedstruggle.host:
semyon-0x04.guaranteedstruggle.host:
semyon-0x05.guaranteedstruggle.host:

10
playbooks/pingo.yml Normal file
View File

@ -0,0 +1,10 @@
---
- name: pingu
hosts: all
# remote_user: root
become: yes
tasks:
- name: pingu!
ansible.builtin.ping:

19
playbooks/run-puppet.yml Normal file
View File

@ -0,0 +1,19 @@
---
- name: run it
hosts: puppets
gather_facts: no
become: yes
tasks:
- name: run 'em
community.general.puppet:
summarize: true
- name: run it 2
hosts: samehost-zero.guaranteedstruggle.host
gather_facts: no
become: yes
tasks:
- name: run this
community.general.puppet:
summarize: yes
certname: samehost-zero.guaranteedstuggle.host