mirror of
https://github.com/roles-ansible/ansible_role_dotfiles.git
synced 2024-08-16 16:09:49 +02:00
improved dotfiles
This commit is contained in:
parent
43534dace3
commit
20256e4153
1 changed files with 5 additions and 41 deletions
|
@ -2,12 +2,14 @@
|
||||||
- debug: var=bash
|
- debug: var=bash
|
||||||
|
|
||||||
- name: install the latest libselinux-python package
|
- name: install the latest libselinux-python package
|
||||||
|
become: yes
|
||||||
dnf:
|
dnf:
|
||||||
name: libselinux-python
|
name: libselinux-python
|
||||||
state: latest
|
state: latest
|
||||||
when: ansible_distribution == "Fedora"
|
when: ansible_distribution == "Fedora"
|
||||||
|
|
||||||
- name: Create a global bashrc configuration
|
- name: Create a global bashrc configuration
|
||||||
|
become: yes
|
||||||
template:
|
template:
|
||||||
src: 'templates/bash.bashrc'
|
src: 'templates/bash.bashrc'
|
||||||
dest: '/etc/bash.bashrc'
|
dest: '/etc/bash.bashrc'
|
||||||
|
@ -16,6 +18,7 @@
|
||||||
mode: 'u=rw,g=r,o=r'
|
mode: 'u=rw,g=r,o=r'
|
||||||
|
|
||||||
- name: Copy bashrc configuration to admin users
|
- name: Copy bashrc configuration to admin users
|
||||||
|
become: yes
|
||||||
template:
|
template:
|
||||||
src: 'templates/bashrc'
|
src: 'templates/bashrc'
|
||||||
dest: '/home/{{ item }}/.bashrc'
|
dest: '/home/{{ item }}/.bashrc'
|
||||||
|
@ -26,6 +29,7 @@
|
||||||
when: admins is defined
|
when: admins is defined
|
||||||
|
|
||||||
- name: Copy vimrc configuration to root
|
- name: Copy vimrc configuration to root
|
||||||
|
become: yes
|
||||||
copy:
|
copy:
|
||||||
src: 'templates/vimrc'
|
src: 'templates/vimrc'
|
||||||
dest: '/root/.vimrc'
|
dest: '/root/.vimrc'
|
||||||
|
@ -34,6 +38,7 @@
|
||||||
mode: 'u=rw,g=r,o='
|
mode: 'u=rw,g=r,o='
|
||||||
|
|
||||||
- name: Copy vimrc configuration to admin users
|
- name: Copy vimrc configuration to admin users
|
||||||
|
become: yes
|
||||||
copy:
|
copy:
|
||||||
src: 'templates/vimrc'
|
src: 'templates/vimrc'
|
||||||
dest: '/home/{{ item }}/.vimrc'
|
dest: '/home/{{ item }}/.vimrc'
|
||||||
|
@ -43,44 +48,3 @@
|
||||||
with_items: "{{ admins }}"
|
with_items: "{{ admins }}"
|
||||||
when: admins is defined
|
when: admins is defined
|
||||||
|
|
||||||
- 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