More blockinfile's.

This commit is contained in:
2021-02-07 06:22:49 -06:00
parent 8e9f561cd7
commit 164f81d8d4
2 changed files with 24 additions and 3 deletions

View File

@ -23,9 +23,21 @@
#password: "{{ ling_passwd }}"
register: user_ling
- name: General | Account Management | User | Hyperling TRASH Folder
- name: General | Account Management | User | Hyperling | TRASH Folder
file:
path: "{{ user_ling.home }}/TRASH"
state: directory
mode: '0755'
when: user_ling.home != ""
- name: General | Account Management | User | Hyperling | .bashrc Entries
blockinfile:
path: "{{ user_ling.home }}/.bashrc"
block: |
alias cp='cp -v'
alias mv='mv -v'
alias rm='echo "Use mv ~/TRASH/ instead!'
marker: '# {mark} MANAGED BY ANSIBLE | Aliases'
state: present
backup: yes
when: user_ling.home != ""