This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on: https://ryaneschinger.com/blog/securing-a-server-with-ansible/ | |
- hosts: all | |
gather_facts: false | |
pre_tasks: | |
- name: install python needed for ansible modules to work | |
raw: sudo bash -c "test -e /usr/bin/python || (apt -qqy update && apt install -qy python-minimal)" | |
tasks: |