Skip to content

Commit

Permalink
Merge pull request #20 from danbarr/skip-reboot
Browse files Browse the repository at this point in the history
Add an option to skip the reboot
Signed-off-by: George Nalen <[email protected]>
  • Loading branch information
georgenalen authored May 19, 2021
2 parents ba0b2bd + c22acd3 commit 3fff4cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Role Variables
| `rhel8stig_dns_servers` | `8.8.8.8 and 8.8.4.4` | To conform to STIG standards you need two DNS servers, parameter is in list form |
| `rhel8stig_nfs_mounts` | `vars` | NFS file system mounts pull automatcially with prelim task |
| `rhel8stig_nfs_mounts_query` | `[?starts_with(fstype, 'nfs')].mount` | The query for mounts |
| `rhel8stig_skip_reboot` | `false` | Whether or not to skip the reboot |


Example Playbook
Expand Down
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ rhel8stig_system_is_container: false
# system_is_ec2 toggle will disable tasks that fail on Amazon EC2 instances. Set true to skip and false to run tasks
system_is_ec2: false

# Whether to skip the reboot
rhel8stig_skip_reboot: false

# These variables correspond with the STIG IDs defined in the STIG and allows you to enable/disable specific rules.
# PLEASE NOTE: These work in coordination with the cat1, cat2, cat3 group variables. You must enable an entire group
# in order for the variables below to take effect.
Expand Down
1 change: 1 addition & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,4 @@
shell: sleep 3; reboot
async: 15
poll: 0
when: not rhel8stig_skip_reboot

0 comments on commit 3fff4cc

Please sign in to comment.