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
|
||||
|
||||
Reference in New Issue
Block a user