multiple changes
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Load distro-specific variables
|
||||
- include_vars: "{{ ansible_distribution }}.yml
|
||||
- include_vars: "{{ ansible_distribution }}.yml"
|
||||
tags: always
|
||||
|
||||
- block:
|
||||
@@ -8,24 +8,24 @@
|
||||
- import_tasks: users/root.yml
|
||||
|
||||
# Set up the ansible environment
|
||||
- import_tasks: ansible_setup.yml
|
||||
# - import_tasks: ansible_setup.yml
|
||||
|
||||
# install software
|
||||
- import_tasks: software/repositories.yml
|
||||
- import_tasks: software/packages_development.yml
|
||||
- import_tasks: software/packages_cleanup.yml
|
||||
- import_tasks: software/packages_pip.yml
|
||||
- import_tasks: software/packages_utilities.yml
|
||||
# - import_tasks: software/repositories.yml
|
||||
# - import_tasks: software/packages_development.yml
|
||||
# - import_tasks: software/packages_cleanup.yml
|
||||
# - import_tasks: software/packages_pip.yml
|
||||
# - import_tasks: software/packages_utilities.yml
|
||||
|
||||
# Perform remeining tasks:
|
||||
- import_tasks: system_setup/clock.yml
|
||||
- import_tasks: system_setup/cron.yml
|
||||
- import_tasks: system_setup/locale.yml
|
||||
- import_tasks: system_setup/logging.yml
|
||||
- import_tasks: system_setup/memory.yml
|
||||
- import_tasks: system_setup/microcode.yml
|
||||
- import_tasks: system_setup/openssh.yml
|
||||
- import_tasks: system_setup/scripts.yml
|
||||
# - import_tasks: system_setup/clock.yml
|
||||
# - import_tasks: system_setup/cron.yml
|
||||
# - import_tasks: system_setup/locale.yml
|
||||
# - import_tasks: system_setup/logging.yml
|
||||
# - import_tasks: system_setup/memory.yml
|
||||
# - import_tasks: system_setup/microcode.yml
|
||||
# - import_tasks: system_setup/openssh.yml
|
||||
# - import_tasks: system_setup/scripts.yml
|
||||
|
||||
rescue:
|
||||
- set_fact: task_failed=true
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
- name: users | rene | ensure account is locked
|
||||
user:
|
||||
name: rrene
|
||||
password_lock: yes
|
||||
|
||||
- name: users | rene | create config directories
|
||||
file:
|
||||
path: /rene/{{ item.dir }}
|
||||
state: directory
|
||||
owner: rene
|
||||
group: rene
|
||||
mode: 0700
|
||||
with_items:
|
||||
- {dir: '.vim'}
|
||||
- {dir: '.vim/colors'}
|
||||
tags: dotfiles
|
||||
|
||||
- name: users | rene | copy dotfiles
|
||||
copy:
|
||||
src: users/rene/{{ item.src }}
|
||||
dest: /rene/{{ item.dest }}
|
||||
owner: rene
|
||||
group: rene
|
||||
mode: 0600
|
||||
with_items:
|
||||
- {src: 'bash/bashrc', dest: '.bashrc'}
|
||||
- {src: 'bash/bash_profile', dest: '.bash_profile'}
|
||||
- {src: 'bash/profile', dest: '.profile'}
|
||||
- {src: 'tmux/tmux.conf', dest: '.tmux.conf'}
|
||||
- {src: 'vim/vimrc', dest: '.vimrc'}
|
||||
- {src: 'zsh/zshrc', dest: '.zshrc'}
|
||||
tags: dotfiles
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
group: root
|
||||
mode: 0700
|
||||
with_items:
|
||||
- { dir: '.vim' }
|
||||
- { dir: '.vim/colors' }
|
||||
- {dir: '.vim'}
|
||||
- {dir: '.vim/colors'}
|
||||
tags: dotfiles
|
||||
|
||||
-name: users | root | copy dotfiles
|
||||
- name: users | root | copy dotfiles
|
||||
copy:
|
||||
src: users/root/{{ item.src }}
|
||||
dest: /root/{{ item.dest }}
|
||||
@@ -23,10 +23,10 @@
|
||||
group: root
|
||||
mode: 0600
|
||||
with_items:
|
||||
- { src: 'bash/bashrc', dest: '.bashrc' }
|
||||
- { src: 'bash/bash_profile', dest: '.bash_profile' }
|
||||
- { src: 'bash/profile', dest: '.profile' }
|
||||
- { src: 'tmux/tmux.conf' dest: '.tmux.conf' }
|
||||
- { src: 'vim/vimrc', dest: '.vimrc' }
|
||||
- { src: 'zsh/zshrc', dest: '.zshrc' }
|
||||
- {src: 'bash/bashrc', dest: '.bashrc'}
|
||||
- {src: 'bash/bash_profile', dest: '.bash_profile'}
|
||||
- {src: 'bash/profile', dest: '.profile'}
|
||||
- {src: 'tmux/tmux.conf', dest: '.tmux.conf'}
|
||||
- {src: 'vim/vimrc', dest: '.vimrc'}
|
||||
- {src: 'zsh/zshrc', dest: '.zshrc'}
|
||||
tags: dotfiles
|
||||
|
||||
3
roles/server/tasks/main.yml
Normal file
3
roles/server/tasks/main.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
# Load distro specific variables
|
||||
- include_vars: "{{ ansible_distribution }}.yml"
|
||||
tags: always
|
||||
86
roles/workstation/tasks/main.yml
Normal file
86
roles/workstation/tasks/main.yml
Normal file
@@ -0,0 +1,86 @@
|
||||
# Load distro-specific variables
|
||||
- include_vars: "{{ ansible_distribution }}.yml"
|
||||
tags: always
|
||||
|
||||
- block:
|
||||
## User configs
|
||||
- import_tasks: users/rene.yml
|
||||
|
||||
## desktop environments
|
||||
|
||||
# - include_tasks: desktop_environments/mate/appearance.yml
|
||||
# when: mate is defined and mate == true
|
||||
|
||||
# - include_tasks: desktop_environments/mate/caja.yml
|
||||
# when: mate is defined and mate == true
|
||||
|
||||
# - include_tasks: desktop_environments/mate/keybindings.yml
|
||||
# when: mate is defined and mate == true
|
||||
|
||||
# - include_tasks: desktop_environments/mate/packages.yml
|
||||
# when: mate is defined and mate == true
|
||||
|
||||
# - include_tasks: desktop_environments/mate/peripherals.yml
|
||||
# when: mate is defined and mate == true
|
||||
|
||||
# - include_tasks: desktop_environments/mate/terminal.yml
|
||||
# when: mate is defined and mate == true
|
||||
|
||||
# - include_tasks: desktop_environments/mate/workspace_settings.yml
|
||||
# when: mate is defined and mate == true
|
||||
|
||||
# - include_tasks: desktop_environments/gnome/appearance.yml
|
||||
# when: gnome is defined and gnome == true
|
||||
|
||||
# - include_tasks: desktop_environments/gnome/keybindings.yml
|
||||
# when: gnome is defined and gnome == true
|
||||
|
||||
# - include_tasks: desktop_environments/gnome/nautilus.yml
|
||||
# when: gnome is defined and gnome == true
|
||||
|
||||
# - include_tasks: desktop_environments/gnome/packages.yml
|
||||
# when: gnome is defined and gnome == true
|
||||
|
||||
# - include_tasks: desktop_environments/gnome/peripherals.yml
|
||||
# when: gnome is defined and gnome == true
|
||||
|
||||
# - include_tasks: desktop_environments/gnome/shell_settings.yml
|
||||
# when: gnome is defined and gnome == true
|
||||
|
||||
# - include_tasks: desktop_environments/gnome/terminal.yml
|
||||
# when: gnome is defined and gnome == true
|
||||
|
||||
# - include_tasks: desktop_environments/gnome/tracker.yml
|
||||
# when: gnome is defined and gnome == true
|
||||
|
||||
## system setup
|
||||
# - import_tasks: system_setup/autofs.yml
|
||||
# - import_tasks: system_setup/scripts.yml
|
||||
# - import_tasks: system_setup/tweaks.yml
|
||||
## install software
|
||||
# - import_tasks: software/audacious.yml
|
||||
# - import_tasks: software/audacity.yml
|
||||
# - import_tasks: software/codecs.yml
|
||||
# - import_tasks: software/chromium.yml
|
||||
# - import_tasks: software/darktable.yml
|
||||
# - import_tasks: software/firefox.yml
|
||||
# - import_tasks: software/foliate.yml
|
||||
# - import_tasks: software/google_chrome.yml
|
||||
# - import_tasks: software/glimpse.yml
|
||||
# - import_tasks: software/kdenlive.yml
|
||||
# - import_tasks: software/keepassxc.yml
|
||||
# - import_tasks: software/libreoffice.yml
|
||||
# - import_tasks: software/linode-cli.yml
|
||||
# - import_tasks: software/lutris.yml
|
||||
# - import_tasks: software/mattermost.yml
|
||||
# - import_tasks: software/misc_games.yml
|
||||
# - import_tasks: software/misc_packages.yml
|
||||
# - import_tasks: software/steam.yml
|
||||
# - import_tasks: software/syncthing.yml
|
||||
# - import_tasks: software/thunderbird.yml
|
||||
# - import_tasks: software/virtualbox.yml
|
||||
# - import_tasks: software/vivaldi.yml
|
||||
# - import_tasks: software/vlc.yml
|
||||
|
||||
rescue:
|
||||
- set_fact: task_failed=true
|
||||
14
roles/workstation/tasks/users/rene.yml
Normal file
14
roles/workstation/tasks/users/rene.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
- name: users | rene | remove preinstalled clutter from home directory
|
||||
file:
|
||||
path: /home/rene/{{ item }}
|
||||
state: absent
|
||||
with_items:
|
||||
- examples.desktop
|
||||
- Desktop
|
||||
- Documents
|
||||
- Downloads
|
||||
- Music
|
||||
- Pictures
|
||||
- Public
|
||||
- Templates
|
||||
- Videos
|
||||
Reference in New Issue
Block a user