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:
parent
06a76f8b28
commit
a8afabbfa5
2 changed files with 42 additions and 0 deletions
|
@ -2,3 +2,5 @@
|
|||
|
||||
bash:
|
||||
bashrc: ''
|
||||
nextcloud: false
|
||||
nm: false
|
||||
|
|
|
@ -39,4 +39,44 @@
|
|||
mode: 'u=rw,g=r,o='
|
||||
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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue