Skip to content

Commit

Permalink
Reorder YAML keys and improve Jinja2 spacing to placate ansible-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jsf9k committed Mar 13, 2024
1 parent 3103f2c commit ba40701
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/cloud_init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# For some reason cloud-init-local, cloud-config, and cloud-final are
# not enabled in the base Kali AMI. We need cloud-config enabled, and
# we may as well enable the others while we're at it.
- hosts: all
name: Enable all cloud-init services
- name: Enable all cloud-init services
hosts: all
become: true
become_method: ansible.builtin.sudo
tasks:
Expand Down
4 changes: 2 additions & 2 deletions src/extras.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- hosts: all
name: Various extras to configure the environment for operators
- name: Various extras to configure the environment for operators
hosts: all
become: true
become_method: ansible.builtin.sudo
tasks:
Expand Down
6 changes: 3 additions & 3 deletions src/pca_gophish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- hosts: all
name: Install and configure PCA Gophish Docker composition
- name: Install and configure PCA Gophish Docker composition
hosts: all
become: true
become_method: ansible.builtin.sudo
tasks:
Expand Down Expand Up @@ -137,7 +137,7 @@
path: /home/{{ vnc_username }}/PCA/Level-{{ item }}/Data
state: directory
# range is exclusive of end point
loop: "{{ range(1, pca_num_levels + 1)|list }}"
loop: "{{ range(1, pca_num_levels + 1) | list }}"
vars:
# The standard number of phishing campaign levels in a PCA
pca_num_levels: 6
Expand Down
4 changes: 2 additions & 2 deletions src/vnc.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- hosts: all
name: Install VNC and configure VNC user
- name: Install VNC and configure VNC user
hosts: all
become: true
become_method: ansible.builtin.sudo
tasks:
Expand Down
4 changes: 2 additions & 2 deletions src/xfce.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- hosts: all
name: Install Xfce
- name: Install Xfce
hosts: all
become: true
become_method: ansible.builtin.sudo
tasks:
Expand Down

0 comments on commit ba40701

Please sign in to comment.