From ba0572f5598b4809f4ad817735208191696234c0 Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 2 Sep 2026 00:21:28 -0400 Subject: [PATCH] pfsense --- ansible.cfg | 2 ++ .../firewall.balsillie.house/ansible_become.yml | 3 +++ .../firewall.balsillie.house/ansible_connection.yml | 4 ++++ playbooks/pfsense.yml | 12 ++++++++++++ 4 files changed, 21 insertions(+) create mode 100644 ansible.cfg create mode 100644 inventory/host_vars/firewall.balsillie.house/ansible_become.yml 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'