ansible/roles/common/tasks/main.yml in subspace-2.5.10 vs ansible/roles/common/tasks/main.yml in subspace-3.0.0.rc1
- old
+ new
@@ -62,24 +62,31 @@
use: systemd
become: true
tags:
- maintenance
+ - name: apt-get update
+ apt: update_cache=yes cache_valid_time=86400
+ become: true
+ tags:
+ - upgrade
+ - maintenance
+ ignore_errors: yes
+
- name: install aptitude
apt:
pkg: aptitude
state: present
become: true
tags:
- maintenance
- - name: apt-get update
- apt: update_cache=yes cache_valid_time=86400
- become: true
- tags:
- - upgrade
- - maintenance
+ - name: "Ensure systemd is installed"
+ apt:
+ name: systemd
+ state: latest
+ update_cache: yes
- name: Add ppa:ondrej/nginx apt repository for TLS 1.3
apt_repository:
repo: ppa:ondrej/nginx
@@ -274,11 +281,11 @@
tags:
- maintenance
- name: Update authorized_keys for deploy user
copy:
- src: authorized_keys
+ src: templates/authorized_keys
dest: "/home/{{deploy_user}}/.ssh/authorized_keys"
owner: "{{deploy_user}}"
become: true
tags:
- authorized_keys
@@ -318,5 +325,9 @@
tags:
- maintenance
- stats
- import_tasks: swap.yml
+ when: swap_space is defined
+
+ - import_tasks: no_swap.yml
+ when: swap_space is not defined