From 896e6824eb3d5488f82990aca9a31db14a82c49f Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 18 Sep 2023 22:52:07 +0200 Subject: use ansible.builtin.package generic module --- roles/firewall/tasks/main.yml | 3 +-- roles/letsencrypt/tasks/certbot.yml | 3 +-- roles/my_workspace/tasks/main.yml | 3 +-- roles/wireguard/tasks/main.yml | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) (limited to 'roles') diff --git a/roles/firewall/tasks/main.yml b/roles/firewall/tasks/main.yml index 909eaa4..c3fa6ab 100644 --- a/roles/firewall/tasks/main.yml +++ b/roles/firewall/tasks/main.yml @@ -1,9 +1,8 @@ - name: Install iptables-persistent become: true - ansible.builtin.apt: + ansible.builtin.package: name: iptables-persistent state: present - install_recommends: false - name: Configure rule files become: true diff --git a/roles/letsencrypt/tasks/certbot.yml b/roles/letsencrypt/tasks/certbot.yml index 2eeeda5..f0a1ad6 100644 --- a/roles/letsencrypt/tasks/certbot.yml +++ b/roles/letsencrypt/tasks/certbot.yml @@ -5,10 +5,9 @@ become: true block: - name: Install snapd - ansible.builtin.apt: + ansible.builtin.package: name: snapd state: present - install_recommends: false - name: Install Certbot community.general.snap: diff --git a/roles/my_workspace/tasks/main.yml b/roles/my_workspace/tasks/main.yml index 81344c3..42039b9 100644 --- a/roles/my_workspace/tasks/main.yml +++ b/roles/my_workspace/tasks/main.yml @@ -9,12 +9,11 @@ - name: Install dependencies become: true - ansible.builtin.apt: + ansible.builtin.package: name: - git - make state: present - install_recommends: false - name: Configure git block: diff --git a/roles/wireguard/tasks/main.yml b/roles/wireguard/tasks/main.yml index 955bfdb..4deea91 100644 --- a/roles/wireguard/tasks/main.yml +++ b/roles/wireguard/tasks/main.yml @@ -2,10 +2,9 @@ become: true block: - name: Install wireguard-tools - ansible.builtin.apt: + ansible.builtin.package: name: wireguard-tools state: present - install_recommends: false - name: Write wg-quick config file ansible.builtin.template: -- cgit v1.2.3