1
0
Fork 0
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:
Lilian Roller 2019-04-24 14:50:40 +02:00
parent e853e367cd
commit 5f57bce081
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
7 changed files with 16 additions and 6 deletions

View file

@ -19,3 +19,5 @@ accounts:
- lilian
akku_user: "lilian"
copy_to_user: "{{ akku_user }}"

View file

@ -17,3 +17,7 @@ admins_ssh_root_prefix:
accounts:
- lilian
akku_user: "lilian"
copy_to_user: "{{ akku_user }}"

View file

@ -15,3 +15,5 @@ accounts:
- l3d
akku_user: "l3d"
copy_to_user: "{{ akku_user }}"

View file

@ -0,0 +1,2 @@
---
copy_to_user: "{{ ansible_user_id }}"

View file

@ -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

View file

@ -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