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
|
||||
|
||||
akku_user: "lilian"
|
||||
|
||||
copy_to_user: "{{ akku_user }}"
|
||||
|
|
|
@ -17,3 +17,7 @@ admins_ssh_root_prefix:
|
|||
|
||||
accounts:
|
||||
- lilian
|
||||
|
||||
akku_user: "lilian"
|
||||
|
||||
copy_to_user: "{{ akku_user }}"
|
||||
|
|
|
@ -15,3 +15,5 @@ accounts:
|
|||
- 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 }}"
|
||||
dest: "{{ item.dest }}"
|
||||
with_items:
|
||||
- { src: 'files/background.png', dest: "/home/{{ user }}/.config/background.png" }
|
||||
- { src: 'files/lockscreen.png', dest: '/home/{{ user }}/.config/lockscreen.png' }
|
||||
- { src: 'files/xinitrc', dest: '/home/{{ user }}/.xinitrc' }
|
||||
- { src: 'files/background.png', dest: "/home/{{ copy_to_user }}/.config/background.png" }
|
||||
- { src: 'files/lockscreen.png', dest: '/home/{{ copy_to_user }}/.config/lockscreen.png' }
|
||||
- { src: 'files/xinitrc', dest: '/home/{{ copy_to_user }}/.xinitrc' }
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit a7092361c7aa3939afa0079ddb874f8319c56f9f
|
||||
Subproject commit 612f3326b63959f95e71daffe201b188b3f5b5a7
|
|
@ -17,14 +17,14 @@
|
|||
dnf:
|
||||
name: NetworkManager
|
||||
state: present
|
||||
when: ansible_distribution == Fedora
|
||||
when: ansible_distribution == 'Fedora'
|
||||
|
||||
- name: install NetworkManager
|
||||
become: yes
|
||||
apt:
|
||||
name: networkmanager
|
||||
state: present
|
||||
when: ansible_os_family == Debian
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- name: install needed packages for NetworkManager
|
||||
become: yes
|
||||
|
|
Loading…
Reference in a new issue