diff --git a/ansible.cfg b/ansible.cfg index 92ba8fa..3b5da2d 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -3,6 +3,3 @@ inventory=./inventory remote_user="ansible" roles_path=./roles collections_path=./collections - -[inventory] -enable_plugins = community.general.proxmox, yaml diff --git a/inventory/inventory b/inventory/inventory index fc10146..65831ff 100644 --- a/inventory/inventory +++ b/inventory/inventory @@ -5,7 +5,7 @@ localhost 192.168.2.236 [docker] -192.168.1.236 ansible_user=ansible +node1 ansible_user=ansible [aws] aws ansible_user=ubuntu @@ -13,8 +13,11 @@ aws ansible_user=ubuntu [helm] node1 ansible_user=ansible +[terraform] +node1 + [dhcp] -192.168.2.191 +nodex [doc] doc ansible_user=pollen diff --git a/playbooks/terraform/setup_terraform.yml b/playbooks/hashicorp/install.yml similarity index 97% rename from playbooks/terraform/setup_terraform.yml rename to playbooks/hashicorp/install.yml index f475491..8f7cec5 100644 --- a/playbooks/terraform/setup_terraform.yml +++ b/playbooks/hashicorp/install.yml @@ -1,6 +1,6 @@ --- - name: install terraform on deb/rpm family - hosts: docker + hosts: terraform become: yes tasks: - name: update cache on debian/rpm family @@ -40,6 +40,7 @@ ansible.builtin.apt: pkg: - terraform + - packer - name: verify terraform works ansible.builtin.command: