1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_i3wm.git synced 2024-08-16 10:09:53 +02:00
This commit is contained in:
L3D 2019-04-07 17:07:15 +02:00
parent 731bd58d15
commit 919ece6d95
3 changed files with 9 additions and 5 deletions

View file

@ -42,6 +42,9 @@ Role Variables
i3_applications: [] i3_applications: []
*ansible user*
i3wm_user: "{{ user }}"
Example Playbook Example Playbook
---------------- ----------------

View file

@ -37,3 +37,4 @@ i3_desktop_env:
i3_packages_extra: i3_packages_extra:
- ranger - ranger
i3wm_user: "{{ user }}"

View file

@ -18,17 +18,17 @@
# create i3 config file # create i3 config file
- name: Creates directory - name: Creates directory
file: file:
path: '/home/{{ ansible_user }}/.config' path: '/home/{{ iw3m_user }}/.config'
state: directory state: directory
mode: 0750 mode: 0750
owner: "{{ ansible_user }}" owner: "{{ iw3m_user }}"
- name: create i3 config folder - name: create i3 config folder
file: file:
path: '/home/{{ ansible_user }}/.config/i3/' path: '/home/{{ iw3m_user }}/.config/i3/'
state: directory state: directory
mode: 0755 mode: 0755
owner: "{{ ansible_user }}" owner: "{{ iw3m_user }}"
- name: register i3 config file - name: register i3 config file
action: stat path="~/.config/i3/config" action: stat path="~/.config/i3/config"
@ -46,7 +46,7 @@
- name: create i3 config file - name: create i3 config file
template: template:
src: config.j2 src: config.j2
dest: "/home/{{ ansible_user }}/.config/i3/config" dest: "/home/{{ iw3m_user }}/.config/i3/config"
- name: check i3 config file - name: check i3 config file
command: i3 -C command: i3 -C