diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..b625ed2 --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,2 @@ +[defaults] +inventory = inventory \ No newline at end of file diff --git a/inventory/host_vars/firewall.balsillie.house/ansible_become.yml b/inventory/host_vars/firewall.balsillie.house/ansible_become.yml new file mode 100644 index 0000000..9ff1326 --- /dev/null +++ b/inventory/host_vars/firewall.balsillie.house/ansible_become.yml @@ -0,0 +1,3 @@ +ansible_become_method: ansible.builtin.sudo +ansible_sudo_user: root +ansible_sudo_pass: "{{ lookup('community.general.passwordstore', 'ansible/firewall.balsillie.house/become-password') }}" diff --git a/inventory/host_vars/firewall.balsillie.house/ansible_connection.yml b/inventory/host_vars/firewall.balsillie.house/ansible_connection.yml index e69de29..19d6da3 100644 --- a/inventory/host_vars/firewall.balsillie.house/ansible_connection.yml +++ b/inventory/host_vars/firewall.balsillie.house/ansible_connection.yml @@ -0,0 +1,4 @@ +ansible_connection: ansible.builtin.ssh +ansible_ssh_host: firewall.balsillie.house +ansible_ssh_port: 22 +ansible_ssh_user: ansible diff --git a/playbooks/pfsense.yml b/playbooks/pfsense.yml index e69de29..1bc5188 100644 --- a/playbooks/pfsense.yml +++ b/playbooks/pfsense.yml @@ -0,0 +1,12 @@ +--- + +- name: Configure container hosts + hosts: + - firewalls + gather_facts: false + tasks: + + - name: Aliases + # become: true + pfsensible.core.pfsense_alias: + address: '10.96.10.60'