mirror of
https://github.com/DO1JLR/ansible_linux_desktop_setup.git
synced 2024-09-14 19:54:51 +02:00
improve ansible workflow for more than one devices
This commit is contained in:
parent
e853e367cd
commit
5f57bce081
7 changed files with 16 additions and 6 deletions
|
@ -19,3 +19,5 @@ accounts:
|
||||||
- lilian
|
- lilian
|
||||||
|
|
||||||
akku_user: "lilian"
|
akku_user: "lilian"
|
||||||
|
|
||||||
|
copy_to_user: "{{ akku_user }}"
|
||||||
|
|
|
@ -17,3 +17,7 @@ admins_ssh_root_prefix:
|
||||||
|
|
||||||
accounts:
|
accounts:
|
||||||
- lilian
|
- lilian
|
||||||
|
|
||||||
|
akku_user: "lilian"
|
||||||
|
|
||||||
|
copy_to_user: "{{ akku_user }}"
|
||||||
|
|
|
@ -15,3 +15,5 @@ accounts:
|
||||||
- l3d
|
- l3d
|
||||||
|
|
||||||
akku_user: "l3d"
|
akku_user: "l3d"
|
||||||
|
|
||||||
|
copy_to_user: "{{ akku_user }}"
|
||||||
|
|
2
roles/copy_files/defaults/main.yml
Normal file
2
roles/copy_files/defaults/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
copy_to_user: "{{ ansible_user_id }}"
|
|
@ -5,7 +5,7 @@
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { src: 'files/background.png', dest: "/home/{{ user }}/.config/background.png" }
|
- { src: 'files/background.png', dest: "/home/{{ copy_to_user }}/.config/background.png" }
|
||||||
- { src: 'files/lockscreen.png', dest: '/home/{{ user }}/.config/lockscreen.png' }
|
- { src: 'files/lockscreen.png', dest: '/home/{{ copy_to_user }}/.config/lockscreen.png' }
|
||||||
- { src: 'files/xinitrc', dest: '/home/{{ user }}/.xinitrc' }
|
- { src: 'files/xinitrc', dest: '/home/{{ copy_to_user }}/.xinitrc' }
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit a7092361c7aa3939afa0079ddb874f8319c56f9f
|
Subproject commit 612f3326b63959f95e71daffe201b188b3f5b5a7
|
|
@ -17,14 +17,14 @@
|
||||||
dnf:
|
dnf:
|
||||||
name: NetworkManager
|
name: NetworkManager
|
||||||
state: present
|
state: present
|
||||||
when: ansible_distribution == Fedora
|
when: ansible_distribution == 'Fedora'
|
||||||
|
|
||||||
- name: install NetworkManager
|
- name: install NetworkManager
|
||||||
become: yes
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
name: networkmanager
|
name: networkmanager
|
||||||
state: present
|
state: present
|
||||||
when: ansible_os_family == Debian
|
when: ansible_os_family == 'Debian'
|
||||||
|
|
||||||
- name: install needed packages for NetworkManager
|
- name: install needed packages for NetworkManager
|
||||||
become: yes
|
become: yes
|
||||||
|
|
Loading…
Reference in a new issue