Start moving back to blocks, easier to manage comments.
This commit is contained in:
parent
1a4a176933
commit
de1c43e7d9
@ -6,11 +6,11 @@
|
|||||||
# openssh_keypair:
|
# openssh_keypair:
|
||||||
# path: /root/.ssh/id_rsa
|
# path: /root/.ssh/id_rsa
|
||||||
|
|
||||||
- name: General | Account Management | SSH Key | Root | Create
|
- name: General | Account Management | Keys | Root | Create SSH
|
||||||
shell: ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa <<< n
|
shell: ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa <<< n
|
||||||
args:
|
args:
|
||||||
executable: "{{ bash_exec.stdout }}"
|
executable: "{{ bash_exec.stdout }}"
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: General | Account Management | SSH Key | Root | Copy to 1337
|
- name: General | Account Management | Keys | Root | Copy SSH to 1337
|
||||||
shell: ssh-copy-id -i /root/.ssh/id_rsa ling@leet
|
shell: ssh-copy-id -i /root/.ssh/id_rsa ling@leet
|
@ -2,23 +2,15 @@
|
|||||||
# Enable and disable services.
|
# Enable and disable services.
|
||||||
|
|
||||||
- name: General | Software | Services | Create SSHFS rc.conf Entry (FreeBSD)
|
- name: General | Software | Services | Create SSHFS rc.conf Entry (FreeBSD)
|
||||||
lineinfile:
|
blockinfile:
|
||||||
path: /etc/rc.conf
|
path: /etc/rc.conf
|
||||||
regexp: '^fusefs_enable='
|
block: |
|
||||||
line: fusefs_enable="YES"
|
fusefs_enable="YES"
|
||||||
|
marker: "# {mark} MANAGED BY ANSIBLE | SSHFS"
|
||||||
state: present
|
state: present
|
||||||
backup: yes
|
backup: yes
|
||||||
when: ansible_system == "FreeBSD"
|
when: ansible_system == "FreeBSD"
|
||||||
|
|
||||||
- name: General | Software | Services | Create SSHFS rc.conf Comment (FreeBSD)
|
|
||||||
lineinfile:
|
|
||||||
path: /etc/fstab
|
|
||||||
regexp: '^# MANAGED BY ANSIBLE | SSHFS'
|
|
||||||
line: '# MANAGED BY ANSIBLE | SSHFS'
|
|
||||||
state: present
|
|
||||||
insertbefore: '^fusefs_enable='
|
|
||||||
when: ansible_system == "FreeBSD"
|
|
||||||
|
|
||||||
- name: General | Software | Services | Load SSHFS (FreeBSD)
|
- name: General | Software | Services | Load SSHFS (FreeBSD)
|
||||||
shell: kldload fusefs
|
shell: kldload fusefs
|
||||||
args:
|
args:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user