Start moving back to blocks, easier to manage comments.

This commit is contained in:
Hyperling 2021-02-03 08:03:12 -06:00
parent 1a4a176933
commit de1c43e7d9
2 changed files with 6 additions and 14 deletions

View File

@ -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

View File

@ -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: