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

use ansible FQCN

This commit is contained in:
L3D 2021-09-19 03:18:12 +02:00
parent 07ee0218df
commit b34fc14d8b
Signed by: l3d
GPG key ID: CD08445BFF4313D1
4 changed files with 15 additions and 12 deletions

View file

@ -1,7 +1,7 @@
---
- name: Create a global bashrc configuration
become: true
template:
ansible.builtin.template:
src: 'templates/bash.bashrc'
dest: '/etc/bash.bashrc'
owner: root
@ -10,7 +10,7 @@
- name: Copy bashrc configuration to root
become: true
template:
ansible.builtin.template:
src: 'templates/bashrc'
dest: '/root/.bashrc'
owner: 'root'
@ -20,7 +20,7 @@
- name: Copy bashrc configuration to non admin users
become: true
template:
ansible.builtin.template:
src: 'templates/bashrc'
dest: '/home/{{ item }}/.bashrc'
owner: '{{ item }}'

View file

@ -1,7 +1,7 @@
---
- name: install the latest libselinux-python package
become: true
dnf:
ansible.builtin.dnf:
name: libselinux-python
state: present
when: ansible_distribution == "Fedora"

View file

@ -1,18 +1,21 @@
---
- include_tasks: versioncheck.yml
- name: rin optional versionscheck
ansible.builtin.include_tasks: versioncheck.yml
when: submodules_versioncheck | bool
- include_tasks: basic-selinux.yml
- name: try to install libselinux-python via dnf
ansible.builtin.include_tasks: basic-selinux.yml
when:
- dotfiles__install_python_selinux | bool
- ansible_distribution == "Fedora"
- include_tasks: bashrc.yml
- name: deploy .bashrc
ansible.builtin.include_tasks: bashrc.yml
when: dotfiles__modify_bashrc | bool
- name: Copy vimrc configuration to root
become: true
copy:
ansible.builtin.copy:
src: 'templates/vimrc'
dest: '/root/.vimrc'
owner: root
@ -21,7 +24,7 @@
- name: Copy vimrc configuration to non admin users
become: true
copy:
ansible.builtin.copy:
src: 'templates/vimrc'
dest: '/home/{{ item }}/.vimrc'
owner: '{{ item }}'
@ -35,7 +38,7 @@
- name: create .config/ranger/ directory
become: true
file:
ansible.builtin.file:
path: "/home/{{ item }}/.config/ranger"
state: directory
owner: "{{ item }}"
@ -50,7 +53,7 @@
- name: create .config/ranger/rc.conf file
become: true
template:
ansible.builtin.template:
src: templates/ranger_rc.conf.j2
dest: "/home/{{ item }}/.config/ranger/rc.conf"
owner: "{{ item }}"

View file

@ -1,3 +1,3 @@
---
playbook_version_number: 2071 # should be increased integer
playbook_version_number: 2072 # should be increased integer
playbook_version_path: 'role_dotfiles_chaos-bodensee_github.version'