Commit deb6410f authored by ale's avatar ale

Use state=present for all apt tasks

parent 9527e10e
Pipeline #6050 passed with stages
in 14 minutes and 4 seconds
---
- name: Install SSMTP
apt: name=ssmtp state=latest
apt:
name: ssmtp
state: present
- name: Configure SSMTP
template: src=ssmtp.conf.j2 dest=/etc/ssmtp/ssmtp.conf
template:
src: ssmtp.conf.j2
dest: /etc/ssmtp/ssmtp.conf
......@@ -6,7 +6,9 @@
tinc_netmask_cidr: 24
- name: Install the tinc package
apt: package=tinc state=latest
apt:
name: tinc
state: present
- file: path="{{ tinc_dir }}" state=directory
- file: path="{{ tinc_dir }}/hosts" state=directory
......
---
- name: Install user-meta-server package
apt: name=user-meta-server state=latest
apt:
name: user-meta-server
state: present
- user:
name: user-meta-server
......@@ -24,4 +26,7 @@
notify: restart user-meta-server
- name: Enable user-meta-server systemd unit
systemd: name=user-meta-server.service enabled=yes masked=no
systemd:
name: user-meta-server.service
enabled: yes
masked: no
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment