Add bin folder for users. Some of this probably needs to become looped.
This commit is contained in:
parent
b2941fa580
commit
993461fe49
@ -22,14 +22,14 @@
|
|||||||
|
|
||||||
- include: facts/general/gather.yml
|
- include: facts/general/gather.yml
|
||||||
|
|
||||||
- include: tasks/general/scripts/root.yml
|
|
||||||
|
|
||||||
- include: tasks/general/acct_mgmt/groups.yml
|
- include: tasks/general/acct_mgmt/groups.yml
|
||||||
- include: tasks/general/acct_mgmt/users.yml
|
- include: tasks/general/acct_mgmt/users.yml
|
||||||
- include: tasks/general/acct_mgmt/sudo.yml
|
- include: tasks/general/acct_mgmt/sudo.yml
|
||||||
- include: tasks/general/acct_mgmt/keys.yml
|
- include: tasks/general/acct_mgmt/keys.yml
|
||||||
- include: tasks/general/acct_mgmt/mounts.yml
|
- include: tasks/general/acct_mgmt/mounts.yml
|
||||||
|
|
||||||
|
- include: tasks/general/scripts/root.yml
|
||||||
|
|
||||||
- include: tasks/general/cron/ansible.yml
|
- include: tasks/general/cron/ansible.yml
|
||||||
|
|
||||||
- include: tasks/freebsd/cron/ansible.yml
|
- include: tasks/freebsd/cron/ansible.yml
|
||||||
|
@ -22,6 +22,14 @@
|
|||||||
generate_ssh_key: yes
|
generate_ssh_key: yes
|
||||||
register: user_ling
|
register: user_ling
|
||||||
|
|
||||||
|
- name: General | Account Management | User | Hyperling | bin Folder
|
||||||
|
file:
|
||||||
|
path: "{{ user_ling.home }}/bin"
|
||||||
|
state: directory
|
||||||
|
mode: '0755'
|
||||||
|
become_user: ling
|
||||||
|
when: user_ling.home != ""
|
||||||
|
|
||||||
- name: General | Account Management | User | Hyperling | TRASH Folder
|
- name: General | Account Management | User | Hyperling | TRASH Folder
|
||||||
file:
|
file:
|
||||||
path: "{{ user_ling.home }}/TRASH"
|
path: "{{ user_ling.home }}/TRASH"
|
||||||
@ -56,26 +64,33 @@
|
|||||||
shell: "{{ bash_exec.stdout }}"
|
shell: "{{ bash_exec.stdout }}"
|
||||||
create_home: yes
|
create_home: yes
|
||||||
generate_ssh_key: yes
|
generate_ssh_key: yes
|
||||||
register: root
|
register: user_root
|
||||||
|
|
||||||
|
- name: General | Account Management | User | Root | bin Folder
|
||||||
|
file:
|
||||||
|
path: "{{ user_root.home }}/bin"
|
||||||
|
state: directory
|
||||||
|
mode: '0755'
|
||||||
|
when: user_root.home != ""
|
||||||
|
|
||||||
- name: General | Account Management | User | Root | TRASH Folder
|
- name: General | Account Management | User | Root | TRASH Folder
|
||||||
file:
|
file:
|
||||||
path: "{{ root.home }}/TRASH"
|
path: "{{ user_root.home }}/TRASH"
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
when: root.home != ""
|
when: user_root.home != ""
|
||||||
|
|
||||||
- name: General | Account Management | User | Root | .bashrc Entries
|
- name: General | Account Management | User | Root | .bashrc Entries
|
||||||
blockinfile:
|
blockinfile:
|
||||||
path: "{{ root.home }}/.bashrc"
|
path: "{{ user_root.home }}/.bashrc"
|
||||||
block: |
|
block: |
|
||||||
alias cp='cp -v'
|
alias cp='cp -v'
|
||||||
alias mv='mv -v'
|
alias mv='mv -v'
|
||||||
alias rm='echo "Use mv ~/TRASH/ instead!"'
|
alias rm='echo "Use mv ~/TRASH/ instead!"'
|
||||||
export PATH=".:~/bin:$PATH"
|
export PATH="~/bin:$PATH"
|
||||||
marker: '# {mark} MANAGED BY ANSIBLE | Aliases'
|
marker: '# {mark} MANAGED BY ANSIBLE | Aliases'
|
||||||
state: present
|
state: present
|
||||||
create: yes
|
create: yes
|
||||||
backup: yes
|
backup: yes
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: root.home != ""
|
when: user_root.home != ""
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
- name: General | Scripts | Root | scm.sh
|
- name: General | Scripts | Root | scm.sh
|
||||||
blockinfile:
|
blockinfile:
|
||||||
path: /root/scm.sh
|
path: "{{ user_root.home }}/scm.sh"
|
||||||
block: |
|
block: |
|
||||||
# 20210211 - Make life easier!
|
# 20210211 - Make life easier!
|
||||||
ssh ling@leet "cd Code/Ansible/ansible-pull; git push"
|
ssh ling@leet "cd Code/Ansible/ansible-pull; git push"
|
||||||
@ -17,5 +17,5 @@
|
|||||||
|
|
||||||
- name: General | Scripts | Root | scm.sh Permissions
|
- name: General | Scripts | Root | scm.sh Permissions
|
||||||
file:
|
file:
|
||||||
path: /root/scm.sh
|
path: "{{ user_root.home }}/scm.sh"
|
||||||
mode: '0755'
|
mode: '0755'
|
Loading…
x
Reference in New Issue
Block a user