More blockinfile's.
This commit is contained in:
parent
8e9f561cd7
commit
164f81d8d4
@ -34,7 +34,7 @@
|
|||||||
path: /etc/fstab
|
path: /etc/fstab
|
||||||
regexp: '^proc'
|
regexp: '^proc'
|
||||||
line: proc /proc procfs rw 0 0
|
line: proc /proc procfs rw 0 0
|
||||||
state: present
|
state: absent
|
||||||
backup: yes
|
backup: yes
|
||||||
|
|
||||||
- name: Workstation | FreeBSD | GUI | Create proc fstab Comment
|
- name: Workstation | FreeBSD | GUI | Create proc fstab Comment
|
||||||
@ -42,9 +42,18 @@
|
|||||||
path: /etc/fstab
|
path: /etc/fstab
|
||||||
regexp: '^# MANAGED BY ANSIBLE | Leet Share'
|
regexp: '^# MANAGED BY ANSIBLE | Leet Share'
|
||||||
line: '# MANAGED BY ANSIBLE | Leet Share'
|
line: '# MANAGED BY ANSIBLE | Leet Share'
|
||||||
state: present
|
state: absent
|
||||||
insertbefore: '^proc'
|
insertbefore: '^proc'
|
||||||
|
|
||||||
|
- name: Workstation | FreeBSD | GUI | Create fstab Entries
|
||||||
|
blockinfile:
|
||||||
|
path: /etc/fstab
|
||||||
|
block: |
|
||||||
|
proc /proc procfs rw 0 0
|
||||||
|
marker: '# {mark} MANAGED BY ANSIBLE | GUI Components'
|
||||||
|
state: present
|
||||||
|
backup: yes
|
||||||
|
|
||||||
- name: Workstation | FreeBSD | GUI | Mount All
|
- name: Workstation | FreeBSD | GUI | Mount All
|
||||||
shell: mount -a
|
shell: mount -a
|
||||||
args:
|
args:
|
||||||
|
@ -23,9 +23,21 @@
|
|||||||
#password: "{{ ling_passwd }}"
|
#password: "{{ ling_passwd }}"
|
||||||
register: user_ling
|
register: user_ling
|
||||||
|
|
||||||
- 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"
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
when: user_ling.home != ""
|
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 != ""
|
Loading…
x
Reference in New Issue
Block a user