parent
c499209325
commit
fae1b5f2f9
12
playbook/roles/role-one/files/settings.json
Normal file
12
playbook/roles/role-one/files/settings.json
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"blacklisted-desktop-dirs": "/usr/share/locale:/usr/share/app-install:/usr/share/kservices5:/usr/share/fk5:/usr/share/kservicetypes5:/usr/share/applications/screensavers:/usr/share/kde4:/usr/share/mimelnk",
|
||||||
|
"clear-previous-query": true,
|
||||||
|
"disable-desktop-filters": false,
|
||||||
|
"grab-mouse-pointer": false,
|
||||||
|
"hotkey-show-app": "<Primary>space",
|
||||||
|
"render-on-screen": "mouse-pointer-monitor",
|
||||||
|
"show-indicator-icon": true,
|
||||||
|
"show-recent-apps": "0",
|
||||||
|
"terminal-command": "",
|
||||||
|
"theme-name": "arc-dark"
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Comice Control center | Install dependencies
|
- name: Comice Control center | Install dependencies
|
||||||
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- python3
|
- python3
|
||||||
|
@ -10,7 +11,6 @@
|
||||||
- wireless-tools
|
- wireless-tools
|
||||||
- iproute2
|
- iproute2
|
||||||
- alsa-utils
|
- alsa-utils
|
||||||
- python3-pip
|
|
||||||
|
|
||||||
- name: Comice Control center | Clone git repository
|
- name: Comice Control center | Clone git repository
|
||||||
git:
|
git:
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Conky | Install dependencies
|
- name: Conky | Install dependencies
|
||||||
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- conky-all
|
- conky-all
|
||||||
|
@ -21,5 +22,3 @@
|
||||||
template:
|
template:
|
||||||
src: conky.desktop
|
src: conky.desktop
|
||||||
dest: "{{ autostart_path }}/conky.desktop"
|
dest: "{{ autostart_path }}/conky.desktop"
|
||||||
owner: root
|
|
||||||
mode: '0644'
|
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
|
- name: Customize Firefox | Check if Firefox is installed
|
||||||
|
command: "which firefox"
|
||||||
|
register: firefox_check
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
|
- name: Customize Firefox | Run firefox - Make sure its initialised
|
||||||
|
shell:
|
||||||
|
cmd: "nohup firefox &"
|
||||||
|
when: firefox_check.rc == 0
|
||||||
|
|
||||||
- name: Customize Firefox | Close firefox if it's running
|
- name: Customize Firefox | Close firefox if it's running
|
||||||
shell:
|
shell:
|
||||||
cmd: "pkill firefox"
|
cmd: "pkill firefox"
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
when: firefox_check.rc == 0
|
||||||
|
|
||||||
- name: Customize Firefox | Run Firefox Tweaks
|
- name: Customize Firefox | Run Firefox Tweaks
|
||||||
shell: "cd {{ home_directory }}/Downloads/WhiteSur-gtk-theme/ && ./tweaks.sh -f"
|
shell: "cd {{ home_directory }}/Downloads/WhiteSur-gtk-theme/ && ./tweaks.sh -f"
|
||||||
|
when: firefox_check.rc == 0
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: File Manager | Install nautilus
|
- name: File Manager | Install nautilus
|
||||||
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
name:
|
name: nautilus
|
||||||
- nautilus
|
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: File Manager | Make Nautilus default file manager
|
- name: File Manager | Make Nautilus default file manager
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: General Changes | Install xfce4
|
- name: General Changes | Install xfce4
|
||||||
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
name: xfce4
|
name: xfce4
|
||||||
state: latest
|
state: latest
|
||||||
|
update_cache: yes
|
||||||
|
|
||||||
- name: General Changes | Hide icons
|
- name: General Changes | Hide icons
|
||||||
xfconf:
|
xfconf:
|
||||||
|
@ -33,11 +35,23 @@
|
||||||
value_type: bool
|
value_type: bool
|
||||||
value: "false"
|
value: "false"
|
||||||
|
|
||||||
|
- name: General Changes | Make sure ~/Downloads directory exists
|
||||||
|
file:
|
||||||
|
path: "{{ home_directory }}/Downloads"
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: General Changes | Check if already downloaded
|
||||||
|
file:
|
||||||
|
path: "{{ home_directory }}/Downloads/update-xfce-bigsur"
|
||||||
|
state: directory
|
||||||
|
register: update_xfce_bigsur_directory
|
||||||
|
|
||||||
- name: General Changes | Download and Unzip update-xfce-bigsur.zip
|
- name: General Changes | Download and Unzip update-xfce-bigsur.zip
|
||||||
unarchive:
|
unarchive:
|
||||||
src: "{{ update_xfce_bigsur_file_url }}"
|
src: "{{ update_xfce_bigsur_file_url }}"
|
||||||
dest: "{{ home_directory }}/Downloads"
|
dest: "{{ home_directory }}/Downloads"
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
|
when: update_xfce_bigsur_directory.changed
|
||||||
|
|
||||||
- name: General Changes | Copy wallpapers to ~/Pictures
|
- name: General Changes | Copy wallpapers to ~/Pictures
|
||||||
copy:
|
copy:
|
||||||
|
@ -48,6 +62,6 @@
|
||||||
- name: General Changes | Change wallpaper
|
- name: General Changes | Change wallpaper
|
||||||
xfconf:
|
xfconf:
|
||||||
channel: "xfce4-desktop"
|
channel: "xfce4-desktop"
|
||||||
property: "/backdrop/screen0/monitorscreen/workspace0/last-image"
|
property: "/backdrop/screen0/monitor0/workspace0/last-image"
|
||||||
value_type: "string"
|
value_type: "string"
|
||||||
value: "{{ home_directory }}/Pictures/wallpapers/Yosemite.png"
|
value: "{{ home_directory }}/Pictures/wallpapers/2560x1440.png"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Global menu | Install dependencies
|
- name: Global menu | Install dependencies
|
||||||
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- vala-panel-appmenu-common
|
- vala-panel-appmenu-common
|
||||||
|
|
|
@ -1,41 +1,49 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
|
- name: LightDM-Webkit2-Greeter | Install dependencies
|
||||||
|
become: yes
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- liblightdm-gobject-1-dev
|
||||||
|
- python3-gi
|
||||||
|
- python3-pip
|
||||||
|
- zip
|
||||||
|
|
||||||
- name: LightDM-Webkit2-Greeter | Install whither
|
- name: LightDM-Webkit2-Greeter | Install whither
|
||||||
pip:
|
pip:
|
||||||
name: whither
|
name: whither
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: LightDM-Webkit2-Greeter | Install dependencies
|
|
||||||
apt:
|
|
||||||
name:
|
|
||||||
- liblightdm-gobject-1-dev
|
|
||||||
- python3-gi
|
|
||||||
|
|
||||||
- name: LightDM-Webkit2-Greeter | Clone web-greeter
|
- name: LightDM-Webkit2-Greeter | Clone web-greeter
|
||||||
git:
|
git:
|
||||||
repo: "{{ web_greeter_git }}"
|
repo: "{{ web_greeter_git }}"
|
||||||
dest: /tmp/greeter
|
dest: /tmp/greeter
|
||||||
|
|
||||||
- name: LightDM-Webkit2-Greeter | Install web-greeter
|
- name: LightDM-Webkit2-Greeter | Install web-greeter
|
||||||
|
become: yes
|
||||||
shell:
|
shell:
|
||||||
cmd: "cd /tmp/greeter && make install"
|
cmd: "cd /tmp/greeter && make install"
|
||||||
|
|
||||||
- name: LightDM-Webkit2-Greeter | Clone lightdm-webkit2-theme-glorious
|
- name: LightDM-Webkit2-Greeter | Clone lightdm-webkit2-theme-glorious
|
||||||
|
become: yes
|
||||||
git:
|
git:
|
||||||
repo: "{{ lightdm_webkit2_theme_glorious_git }}"
|
repo: "{{ lightdm_webkit2_theme_glorious_git }}"
|
||||||
dest: /usr/share/lightdm-webkit/themes/glorious
|
dest: /usr/share/lightdm-webkit/themes/glorious
|
||||||
|
|
||||||
- name: LightDM-Webkit2-Greeter | Place lightdm.conf
|
- name: LightDM-Webkit2-Greeter | Place lightdm.conf
|
||||||
|
become: yes
|
||||||
copy:
|
copy:
|
||||||
src: lightdm.conf
|
src: lightdm.conf
|
||||||
dest: "{{ lightdm_path }}/lightdm.conf"
|
dest: "{{ lightdm_path }}/lightdm.conf"
|
||||||
|
|
||||||
- name: LightDM-Webkit2-Greeter | Place web-greeter.yml
|
- name: LightDM-Webkit2-Greeter | Place web-greeter.yml
|
||||||
|
become: yes
|
||||||
copy:
|
copy:
|
||||||
src: web-greeter.yml
|
src: web-greeter.yml
|
||||||
dest: "{{ lightdm_path }}/web-greeter.yml"
|
dest: "{{ lightdm_path }}/web-greeter.yml"
|
||||||
|
|
||||||
- name: LightDM-Webkit2-Greeter | Copy wallpapers
|
- name: LightDM-Webkit2-Greeter | Copy wallpapers
|
||||||
|
become: yes
|
||||||
copy:
|
copy:
|
||||||
src: "{{ home_directory }}/Pictures/wallpapers"
|
src: "{{ home_directory }}/Pictures/wallpapers"
|
||||||
dest: /usr/share/backgrounds
|
dest: /usr/share/backgrounds
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Picom | Install dependencies
|
- name: Picom | Install dependencies
|
||||||
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
name: "{{ picom_dependency }}"
|
name: "{{ picom_dependency }}"
|
||||||
state: present
|
state: present
|
||||||
|
@ -12,6 +13,7 @@
|
||||||
recursive: yes
|
recursive: yes
|
||||||
|
|
||||||
- name: Picom | Build and Install picom
|
- name: Picom | Build and Install picom
|
||||||
|
become: yes
|
||||||
shell: "cd /tmp/picom && meson --buildtype=release . build && ninja -C build && sudo ninja -C build install"
|
shell: "cd /tmp/picom && meson --buildtype=release . build && ninja -C build && sudo ninja -C build install"
|
||||||
|
|
||||||
- name: Picom | Copy picom config
|
- name: Picom | Copy picom config
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Plank Dock | Install plank dock
|
- name: Plank Dock | Install plank dock
|
||||||
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- plank
|
- plank
|
||||||
|
@ -12,14 +13,6 @@
|
||||||
dest: "{{ home_directory }}/.local/share/plank/themes/"
|
dest: "{{ home_directory }}/.local/share/plank/themes/"
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
|
|
||||||
- name: Plank Dock | Remove panel-2
|
|
||||||
xfconf:
|
|
||||||
channel: xfce4-panel
|
|
||||||
property: /panels
|
|
||||||
value_type: int
|
|
||||||
value: [1]
|
|
||||||
force_array: yes
|
|
||||||
|
|
||||||
- name: Plank Dock | Copy launchpad icon
|
- name: Plank Dock | Copy launchpad icon
|
||||||
copy:
|
copy:
|
||||||
src: "{{ home_directory }}/Downloads/update-xfce-bigsur/icons/launchpad.svg"
|
src: "{{ home_directory }}/Downloads/update-xfce-bigsur/icons/launchpad.svg"
|
||||||
|
@ -39,8 +32,6 @@
|
||||||
template:
|
template:
|
||||||
src: launchpad.dockitem
|
src: launchpad.dockitem
|
||||||
dest: "{{ plank_dock_launcher_path }}/launchpad.dockitem"
|
dest: "{{ plank_dock_launcher_path }}/launchpad.dockitem"
|
||||||
owner: root
|
|
||||||
mode: '0644'
|
|
||||||
|
|
||||||
- name: Plank Dock | Add thunar.dockitem to dock
|
- name: Plank Dock | Add thunar.dockitem to dock
|
||||||
copy:
|
copy:
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Rofi Launcher | Install dependencies
|
- name: Rofi Launcher | Install dependencies
|
||||||
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- rofi
|
- rofi
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Theme-icons-cursor-fonts | install dependencies
|
- name: Theme-icons-cursor-fonts | install dependencies
|
||||||
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- gtk2-engines-murrine
|
- gtk2-engines-murrine
|
||||||
- sassc
|
- sassc
|
||||||
|
- git
|
||||||
|
update_cache: yes
|
||||||
|
|
||||||
- name: Theme-icons-cursor-fonts | clone WhiteSur-gtk-theme
|
- name: Theme-icons-cursor-fonts | clone WhiteSur-gtk-theme
|
||||||
git:
|
git:
|
||||||
|
@ -12,6 +15,7 @@
|
||||||
dest: "{{ home_directory }}/Downloads/WhiteSur-gtk-theme"
|
dest: "{{ home_directory }}/Downloads/WhiteSur-gtk-theme"
|
||||||
|
|
||||||
- name: Theme-icons-cursor-fonts | Install WhiteSur-gtk-theme
|
- name: Theme-icons-cursor-fonts | Install WhiteSur-gtk-theme
|
||||||
|
become: yes
|
||||||
shell:
|
shell:
|
||||||
cmd: "cd {{ home_directory }}/Downloads/WhiteSur-gtk-theme && ./install.sh -c dark -c light"
|
cmd: "cd {{ home_directory }}/Downloads/WhiteSur-gtk-theme && ./install.sh -c dark -c light"
|
||||||
|
|
||||||
|
@ -21,6 +25,7 @@
|
||||||
dest: "{{ home_directory }}/Downloads/WhiteSur-icon-theme"
|
dest: "{{ home_directory }}/Downloads/WhiteSur-icon-theme"
|
||||||
|
|
||||||
- name: Theme-icons-cursor-fonts | Install WhiteSur-icon-theme
|
- name: Theme-icons-cursor-fonts | Install WhiteSur-icon-theme
|
||||||
|
become: yes
|
||||||
shell:
|
shell:
|
||||||
cmd: "cd {{ home_directory }}/Downloads/WhiteSur-icon-theme && ./install.sh"
|
cmd: "cd {{ home_directory }}/Downloads/WhiteSur-icon-theme && ./install.sh"
|
||||||
|
|
||||||
|
@ -30,6 +35,7 @@
|
||||||
dest: "{{ home_directory }}/Downloads/WhiteSur-cursors"
|
dest: "{{ home_directory }}/Downloads/WhiteSur-cursors"
|
||||||
|
|
||||||
- name: Theme-icons-cursor-fonts | Install WhiteSur-cursors
|
- name: Theme-icons-cursor-fonts | Install WhiteSur-cursors
|
||||||
|
become: yes
|
||||||
shell:
|
shell:
|
||||||
cmd: "cd {{ home_directory }}/Downloads/WhiteSur-cursors && ./install.sh"
|
cmd: "cd {{ home_directory }}/Downloads/WhiteSur-cursors && ./install.sh"
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,18 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Ulauncher | Add apt repository
|
- name: Ulauncher | Add apt repository
|
||||||
|
become: yes
|
||||||
apt_repository:
|
apt_repository:
|
||||||
repo: ppa:agornostal/ulauncher
|
repo: ppa:agornostal/ulauncher
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Ulauncher | Update apt cache
|
- name: Ulauncher | Update apt cache
|
||||||
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
- name: Ulauncher | Install Ulauncher
|
- name: Ulauncher | Install Ulauncher
|
||||||
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
name: ulauncher
|
name: ulauncher
|
||||||
state: latest
|
state: latest
|
||||||
|
@ -20,10 +23,10 @@
|
||||||
dest: "{{ home_directory }}/.config/ulauncher/"
|
dest: "{{ home_directory }}/.config/ulauncher/"
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
|
|
||||||
- name: Ulauncher | Update settings
|
- name: Ulauncher | Copy settings
|
||||||
shell:
|
copy:
|
||||||
cmd: "sed -i 's/\"theme-name\": \".*\"/\"theme-name\": \"arc-dark\"/g' {{ home_directory }}/.config/ulauncher/settings.json"
|
src: settings.json
|
||||||
warn: false
|
dest: "{{ home_directory }}/.config/ulauncher/"
|
||||||
|
|
||||||
- name: Ulauncher | Add in autostart
|
- name: Ulauncher | Add in autostart
|
||||||
copy:
|
copy:
|
||||||
|
|
|
@ -146,3 +146,11 @@
|
||||||
property: /panels/panel-1/plugin-ids
|
property: /panels/panel-1/plugin-ids
|
||||||
value_type: int
|
value_type: int
|
||||||
value: [26,1,3,30,5,29,28,6,7,8,9,10,11,12,13,14,27]
|
value: [26,1,3,30,5,29,28,6,7,8,9,10,11,12,13,14,27]
|
||||||
|
|
||||||
|
- name: Xfce Panel | Remove panel-2
|
||||||
|
xfconf:
|
||||||
|
channel: xfce4-panel
|
||||||
|
property: /panels
|
||||||
|
value_type: int
|
||||||
|
value: [1]
|
||||||
|
force_array: yes
|
||||||
|
|
|
@ -7,11 +7,13 @@
|
||||||
depth: 1
|
depth: 1
|
||||||
|
|
||||||
- name: Terminal | Install zsh
|
- name: Terminal | Install zsh
|
||||||
|
become: yes
|
||||||
apt:
|
apt:
|
||||||
name: zsh
|
name: zsh
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Terminal | Change shell to zsh
|
- name: Terminal | Change shell to zsh
|
||||||
|
become: yes
|
||||||
shell:
|
shell:
|
||||||
cmd: "chsh -s $(which zsh)"
|
cmd: "chsh -s $(which zsh)"
|
||||||
|
|
||||||
|
@ -29,6 +31,11 @@
|
||||||
shell:
|
shell:
|
||||||
cmd: "echo 'POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true' >>! ~/.zshrc"
|
cmd: "echo 'POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true' >>! ~/.zshrc"
|
||||||
|
|
||||||
|
- name: Terminal | Make sure terminal_config_path directory exists
|
||||||
|
file:
|
||||||
|
path: "{{ terminal_config_path }}"
|
||||||
|
state: directory
|
||||||
|
|
||||||
- name: Terminal | Copy terminal config
|
- name: Terminal | Copy terminal config
|
||||||
copy:
|
copy:
|
||||||
src: terminalrc
|
src: terminalrc
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
|
|
||||||
home_directory: /root
|
user: testuser
|
||||||
plank_dock_launcher_path: /root/.config/plank/dock1/launchers
|
home_directory: /home/{{ user }}
|
||||||
autostart_path: /root/.config/autostart
|
plank_dock_launcher_path: "{{ home_directory }}/.config/plank/dock1/launchers"
|
||||||
|
autostart_path: "{{ home_directory }}/.config/autostart"
|
||||||
lightdm_path: /etc/lightdm
|
lightdm_path: /etc/lightdm
|
||||||
terminal_config_path: /root/.config/xfce4/terminal
|
terminal_config_path: "{{ home_directory }}/.config/xfce4/terminal"
|
||||||
|
|
||||||
picom_dependency:
|
picom_dependency:
|
||||||
- cmake
|
- cmake
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
- name: Apply role-one to all nodes
|
- name: Apply role-one to all nodes
|
||||||
hosts: all
|
hosts: all
|
||||||
remote_user: root
|
remote_user: testuser
|
||||||
roles:
|
roles:
|
||||||
- role-one
|
- role-one
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
## ansible-pull -o -d ~/Documents/modify-desktop-ansible -i ~/Documents/inventory -U https://git.bitmessage.org/swapnil/customize-xfce-anisble.git ~/Documents/modify-desktop-ansible/playbook/setup.yml
|
||||||
|
|
||||||
- install xfce
|
- install xfce
|
||||||
- sudo apt install xfce4
|
- sudo apt install xfce4
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user