aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-09-18 22:52:07 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-09-18 22:52:07 +0200
commit896e6824eb3d5488f82990aca9a31db14a82c49f (patch)
tree2274516ee5b8c1b743d71484bc25ed2f85814e47
parentv0.0.26 (diff)
downloadinfra-ansible-896e6824eb3d5488f82990aca9a31db14a82c49f.tar.gz
infra-ansible-896e6824eb3d5488f82990aca9a31db14a82c49f.zip
use ansible.builtin.package generic module
-rw-r--r--roles/firewall/tasks/main.yml3
-rw-r--r--roles/letsencrypt/tasks/certbot.yml3
-rw-r--r--roles/my_workspace/tasks/main.yml3
-rw-r--r--roles/wireguard/tasks/main.yml3
4 files changed, 4 insertions, 8 deletions
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: