commit 97728c12017c8def88f6150f953a8919a3ce28ea Author: root Date: Thu Oct 12 19:18:54 2023 +1000 fstone diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..1253935 --- /dev/null +++ b/ansible.cfg @@ -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 diff --git a/environments/base/group_vars/all/ssh-creds.yml b/environments/base/group_vars/all/ssh-creds.yml new file mode 100644 index 0000000..aaf2a7a --- /dev/null +++ b/environments/base/group_vars/all/ssh-creds.yml @@ -0,0 +1,4 @@ +--- +ansible_ssh_user: hogweed1 +ansible_ssh_pass: coloredhorses +ansible_sudo_pass: coloredhorses diff --git a/environments/base/hosts.yml b/environments/base/hosts.yml new file mode 100644 index 0000000..7d094b6 --- /dev/null +++ b/environments/base/hosts.yml @@ -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: diff --git a/playbooks/pingo.yml b/playbooks/pingo.yml new file mode 100644 index 0000000..35b644b --- /dev/null +++ b/playbooks/pingo.yml @@ -0,0 +1,10 @@ +--- +- name: pingu + hosts: all + # remote_user: root + + become: yes + tasks: + - name: pingu! + ansible.builtin.ping: + diff --git a/playbooks/run-puppet.yml b/playbooks/run-puppet.yml new file mode 100644 index 0000000..8d8d720 --- /dev/null +++ b/playbooks/run-puppet.yml @@ -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