diff --git a/.config/ansible-lint.yml b/.config/ansible-lint.yml new file mode 100644 index 0000000..e807dd1 --- /dev/null +++ b/.config/ansible-lint.yml @@ -0,0 +1,3 @@ +--- +skip_list: + - 'name[template]' diff --git a/.yamllint.yaml b/.yamllint.yaml new file mode 100644 index 0000000..0c01e2b --- /dev/null +++ b/.yamllint.yaml @@ -0,0 +1,3 @@ +--- +rules: + line-length: disable diff --git a/defaults/main.yml b/defaults/main.yml index 8f0812f..46e5659 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,2 +1,2 @@ --- -terraform_ver: 1.6.6 +terraform_ver: 1.7.0 diff --git a/meta/main.yml b/meta/main.yml index 67e749e..b9cd384 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -8,12 +8,13 @@ galaxy_info: - cloud - infrastructure license: MIT - min_ansible_version: 1.2 + min_ansible_version: '1.2' + namespace: andrewrothstein platforms: - name: Alpine versions: - all - - name: Archlinux + - name: ArchLinux versions: - all - name: Debian @@ -22,12 +23,12 @@ galaxy_info: - bullseye - name: EL versions: - - 8 - - 9 + - '8' + - '9' - name: Fedora versions: - - 38 - - 39 + - '38' + - '39' - name: Ubuntu versions: - focal diff --git a/meta/requirements.yml b/meta/requirements.yml index 812a8c2..6144a53 100644 --- a/meta/requirements.yml +++ b/meta/requirements.yml @@ -1,3 +1,3 @@ --- - name: andrewrothstein.hashi - version: v1.0.12 + version: v1.0.13 diff --git a/platform-matrix-v1.json b/platform-matrix-v1.json index db72e9c..b4505bc 100644 --- a/platform-matrix-v1.json +++ b/platform-matrix-v1.json @@ -47,4 +47,4 @@ "OS": "ubuntu", "OS_VER": "jammy" } -] +] \ No newline at end of file diff --git a/tasks/main.yml b/tasks/main.yml index ac9e76d..6f296d1 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,6 +1,6 @@ --- -- name: installing terraform binaries - include_role: +- name: Installing terraform binaries + ansible.builtin.include_role: name: andrewrothstein.hashi vars: hashi_apps: diff --git a/test.yml b/test.yml index 1a4207a..08c3aae 100644 --- a/test.yml +++ b/test.yml @@ -1,26 +1,14 @@ --- -- hosts: all - roles: - - role: '{{playbook_dir}}' - terraform_providers: - - provider: aws - version: '1.3.0' - binary_ver: x4 - checksums: - darwin_amd64: sha256:b34dfda2d4123e9e2781afd7b581aba635af6510a93c59a3bde90de23c06599b - freebsd_386: sha256:9443837651a5d80a84e1c20655a020d90757d4e27fed71690d6146a35621badb - freebsd_amd64: sha256:6fb992a921b92f3282af9e479e0fec811fe053fb0b8495384f3a8ca5f03fa418 - freebsd_arm: sha256:571eeed69a7e9854269b0e53fe50aa2b4654378adae5305377a9566f8bd830a8 - linux_386: sha256:c34ed2f7b2b6e3ec4ceba08f89117fdaa2491e682ddeb7c9244f5244d4456d06 - linux_amd64: sha256:5e3185679c325164424d52939011650cd5559d861b22c8742d8c7880e6735cdd - linux_arm: sha256:a003f680e1f899b199e9abb84eaebe52340746711004322073c1f3491b3f2185 - openbsd_386: sha256:ad8240a0e8ae371386a073c6c88a4df54d1a493197a5f8ca57ec285467b241a5 - openbsd_amd64: sha256:3887d8e60d567d1acd75012f062907d34eaae8cb68336c0eefe332cb8174b40c - solaris_amd64: sha256:8418e0a0d2aea003f35785df796bc3a262e2ffbb80fae75506700faf513ef99b - windows_386: sha256:87c46cd959732343d2f16becb4e49e9a4d3a1a47708d0e78faacd4d77273db34 - windows_amd64: sha256:b7fdfa2083c49497cd692bece5c240131833d0d0f5011366e7986cd29d5ea559 +- name: Testing andrewrothstein.terraform + hosts: all tasks: - - command: /usr/local/bin/terraform --version + - name: Installing andrewrothstein.terraform + ansible.builtin.include_role: + name: '{{ playbook_dir }}' + - name: Executing 'terraform --version' + ansible.builtin.command: /usr/local/bin/terraform --version + changed_when: false register: terraform_test_output - - debug: + - name: Output from 'terraform --version' + ansible.builtin.debug: msg: '{{ terraform_test_output.stdout }}'