Skip to content

Instantly share code, notes, and snippets.

---
- hosts: <EC2 Name tag or IP> # REQUIRED
become: yes
become_user: root
vars_files:
- vars/main.yml
# Can replace with include_role for task-like functions - http://docs.ansible.com/ansible/include_vars_module.html
roles:
- <role name>
---
ip_rules:
rule_name:
protocol:
pub: # ip
pri: # ip
protocol: "tcp"
port:
comment:
---
# Environment details
ENVIRONMENT: # Will impact logroate behavior
2017/11/17 12:59:03 [INFO] Terraform version: 0.11.0 ec9d4f1d0f90e8ec5148f94b6d634eb542a4f0ce+CHANGES
2017/11/17 12:59:03 [INFO] Go runtime version: go1.9
2017/11/17 12:59:03 [INFO] CLI args: []string{"/Users/user/gitlab/internal/internal-vault-config/terraform", "apply", "-var-file=nonprod.tfvars", "-auto-approve=true"}
2017/11/17 12:59:03 [DEBUG] Attempting to open CLI config file: /Users/user/.terraformrc
2017/11/17 12:59:03 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/11/17 12:59:03 [INFO] CLI command args: []string{"apply", "-var-file=nonprod.tfvars", "-auto-approve=true"}
2017/11/17 12:59:03 [INFO] command: empty terraform config, returning nil
2017/11/17 12:59:03 [DEBUG] command: no data state file found for backend config
2017/11/17 12:59:03 [DEBUG] New state was assigned lineage "3a0b404a-a1e7-4d28-9e22-bfefb0de4e1c"