aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-31 16:19:24 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-31 16:19:24 +0200
commitc610fabe5bd09025c13c2a9ab7e4990bd8ef2973 (patch)
tree52b807f23707e319941e49312abb1f1909711903 /roles
parentapt: unattended upgrades off by default (diff)
downloadinfra-ansible-c610fabe5bd09025c13c2a9ab7e4990bd8ef2973.tar.gz
infra-ansible-c610fabe5bd09025c13c2a9ab7e4990bd8ef2973.zip
apt_extra_packages -> apt_packages
Diffstat (limited to 'roles')
-rw-r--r--roles/apt/defaults/main.yml2
-rw-r--r--roles/apt/tasks/main.yml4
-rw-r--r--roles/debian_cloud_server/meta/main.yml2
3 files changed, 4 insertions, 4 deletions
diff --git a/roles/apt/defaults/main.yml b/roles/apt/defaults/main.yml
index c29a406..900172f 100644
--- a/roles/apt/defaults/main.yml
+++ b/roles/apt/defaults/main.yml
@@ -1,4 +1,4 @@
-apt_extra_packages: []
+apt_packages: []
apt_unattended: false
apt_unattended_reboot: true
apt_unattended_reboot_time: "02:00"
diff --git a/roles/apt/tasks/main.yml b/roles/apt/tasks/main.yml
index be4ab8e..415ff8d 100644
--- a/roles/apt/tasks/main.yml
+++ b/roles/apt/tasks/main.yml
@@ -19,11 +19,11 @@
- name: Reboot if necessary
ansible.builtin.meta: flush_handlers
-- name: Install extra packages
+- name: Install packages
become: true
ansible.builtin.apt:
install_recommends: false
- name: '{{ apt_extra_packages }}'
+ name: '{{ apt_packages }}'
state: present
- name: Configure unattended-upgrades
diff --git a/roles/debian_cloud_server/meta/main.yml b/roles/debian_cloud_server/meta/main.yml
index 65a5821..71d1bc2 100644
--- a/roles/debian_cloud_server/meta/main.yml
+++ b/roles/debian_cloud_server/meta/main.yml
@@ -2,7 +2,7 @@ dependencies:
- role: cloud_init_wait
- role: apt
vars:
- apt_extra_packages: '{{ debian_cloud_server_packages }}'
+ apt_packages: '{{ debian_cloud_server_packages }}'
apt_unattended: true
- role: sshd
- role: firewall