1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_dotfiles.git synced 2024-08-16 16:09:49 +02:00

Prepare unit files for nm and nextcloud

This commit is contained in:
L3D 2018-12-09 00:14:24 +01:00
parent 06a76f8b28
commit a8afabbfa5
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 42 additions and 0 deletions

View file

@ -2,3 +2,5 @@
bash: bash:
bashrc: '' bashrc: ''
nextcloud: false
nm: false

View file

@ -39,4 +39,44 @@
mode: 'u=rw,g=r,o=' mode: 'u=rw,g=r,o='
with_items: "{{ admins }}" with_items: "{{ admins }}"
- name: install nextcloud-client systemd unit file
template:
src: nextcloud.j2
dest: /etc/systemd/system/nextcloud.service
when: bash.nextcloud
- name: start nextcloud
systemd:
state: started
name: nextcloud
daemon_reload: yes
when: bash.nextcloud
- name: enable nextcloud:
systemd:
name: nextcloud
enabled: yes
masked: no
when: bash.nextcloud
- name: install networkmanager-applet systemd unit file
template:
src: nm-applet.j2
dest: /etc/systemd/system/nm-applet.service
when: bash.nm
- name: start nm-applet
systemd:
state: started
name: nm-applet
daemon_reload: yes
when: bash.nm
- name: enable nm-applet
systemd:
name: nm-applet
enabled: yes
masked: no
when: bash.nm