I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.
if ufw is not installed by default be sure to install it first.
# Ubuntu Server automated installation | |
# by Scott Lowe (scott.lowe@scottlowe.org) | |
d-i debian-installer/locale string en_US | |
d-i console-setup/ask_detect boolean false | |
d-i keyboard-configuration/layoutcode string us | |
d-i netcfg/choose_interface select eth0 | |
d-i netcfg/get_hostname string hostname | |
d-i netcfg/get_domain string domain.com | |
d-i netcfg/wireless_wep string |
--- | |
- name: create some vms | |
hosts: localhost | |
connection: local | |
vars_prompt: | |
- name: "vcenter_host" | |
prompt: "Enter vcenter host" | |
private: no | |
default: "vcsa" | |
- name: "vcenter_user" |
# Add this snippet to the top of your playbook. | |
# It will install python2 if missing (but checks first so no expensive repeated apt updates) | |
# gwillem@gmail.com | |
- hosts: all | |
gather_facts: False | |
tasks: | |
- name: install python 2 | |
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) |