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

View file

@ -1,7 +1,7 @@
--- ---
- name: install the latest libselinux-python package - name: install the latest libselinux-python package
become: true become: true
dnf: ansible.builtin.dnf:
name: libselinux-python name: libselinux-python
state: present state: present
when: ansible_distribution == "Fedora" 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 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: when:
- dotfiles__install_python_selinux | bool - dotfiles__install_python_selinux | bool
- ansible_distribution == "Fedora" - ansible_distribution == "Fedora"
- include_tasks: bashrc.yml - name: deploy .bashrc
ansible.builtin.include_tasks: bashrc.yml
when: dotfiles__modify_bashrc | bool when: dotfiles__modify_bashrc | bool
- name: Copy vimrc configuration to root - name: Copy vimrc configuration to root
become: true become: true
copy: ansible.builtin.copy:
src: 'templates/vimrc' src: 'templates/vimrc'
dest: '/root/.vimrc' dest: '/root/.vimrc'
owner: root owner: root
@ -21,7 +24,7 @@
- name: Copy vimrc configuration to non admin users - name: Copy vimrc configuration to non admin users
become: true become: true
copy: ansible.builtin.copy:
src: 'templates/vimrc' src: 'templates/vimrc'
dest: '/home/{{ item }}/.vimrc' dest: '/home/{{ item }}/.vimrc'
owner: '{{ item }}' owner: '{{ item }}'
@ -35,7 +38,7 @@
- name: create .config/ranger/ directory - name: create .config/ranger/ directory
become: true become: true
file: ansible.builtin.file:
path: "/home/{{ item }}/.config/ranger" path: "/home/{{ item }}/.config/ranger"
state: directory state: directory
owner: "{{ item }}" owner: "{{ item }}"
@ -50,7 +53,7 @@
- name: create .config/ranger/rc.conf file - name: create .config/ranger/rc.conf file
become: true become: true
template: ansible.builtin.template:
src: templates/ranger_rc.conf.j2 src: templates/ranger_rc.conf.j2
dest: "/home/{{ item }}/.config/ranger/rc.conf" dest: "/home/{{ item }}/.config/ranger/rc.conf"
owner: "{{ item }}" 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' playbook_version_path: 'role_dotfiles_chaos-bodensee_github.version'