2018-11-15 10:26:52 +01:00
|
|
|
---
|
2019-01-19 00:15:14 +01:00
|
|
|
- debug: var=bash
|
|
|
|
|
2018-11-15 10:26:52 +01:00
|
|
|
- name: install the latest libselinux-python package
|
|
|
|
dnf:
|
|
|
|
name: libselinux-python
|
|
|
|
state: latest
|
|
|
|
when: ansible_distribution == "Fedora"
|
|
|
|
|
|
|
|
- name: Create a global bashrc configuration
|
2019-01-13 20:06:29 +01:00
|
|
|
template:
|
2019-01-10 13:32:49 +01:00
|
|
|
src: 'templates/bash.bashrc'
|
2018-11-15 10:26:52 +01:00
|
|
|
dest: '/etc/bash.bashrc'
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 'u=rw,g=r,o=r'
|
|
|
|
|
|
|
|
- name: Copy bashrc configuration to admin users
|
2018-11-15 15:04:18 +01:00
|
|
|
template:
|
2019-01-10 13:32:49 +01:00
|
|
|
src: 'templates/bashrc'
|
2018-11-15 10:26:52 +01:00
|
|
|
dest: '/home/{{ item }}/.bashrc'
|
|
|
|
owner: '{{ item }}'
|
2019-01-13 17:30:59 +01:00
|
|
|
group: '{{ item }}'
|
2018-11-15 10:26:52 +01:00
|
|
|
mode: 'u=rw,g=r,o='
|
|
|
|
with_items: '{{ admins }}'
|
|
|
|
|
|
|
|
- name: Copy vimrc configuration to root
|
|
|
|
copy:
|
2019-01-10 13:32:49 +01:00
|
|
|
src: 'templates/vimrc'
|
2018-11-15 10:26:52 +01:00
|
|
|
dest: '/root/.vimrc'
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 'u=rw,g=r,o='
|
|
|
|
|
|
|
|
- name: Copy vimrc configuration to admin users
|
|
|
|
copy:
|
2019-01-10 13:32:49 +01:00
|
|
|
src: 'templates/vimrc'
|
2018-11-15 10:26:52 +01:00
|
|
|
dest: '/home/{{ item }}/.vimrc'
|
|
|
|
owner: '{{ item }}'
|
2019-01-13 17:30:59 +01:00
|
|
|
group: '{{ item }}'
|
2018-11-15 10:26:52 +01:00
|
|
|
mode: 'u=rw,g=r,o='
|
|
|
|
with_items: "{{ admins }}"
|
|
|
|
|
2018-12-09 00:14:24 +01:00
|
|
|
- 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
|
|
|
|
|
2019-01-10 13:34:58 +01:00
|
|
|
- name: enable nextcloud
|
2018-12-09 00:14:24 +01:00
|
|
|
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
|
|
|
|
|
2018-11-15 10:26:52 +01:00
|
|
|
|