mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-09-30 13:33:30 -07:00
1. creates instances with a custom ssh keypair 2. change the connection plugin method and perform basic checks 3. cleanup
25 lines
596 B
YAML
25 lines
596 B
YAML
---
|
|
- name: Test IAP connection plugin
|
|
hosts: gcp_cluster_web:gcp_cluster_db
|
|
connection: google.cloud.iap
|
|
gather_facts: false
|
|
vars_files:
|
|
- ../vars.yml
|
|
tasks:
|
|
- name: TEST | Ping
|
|
ansible.builtin.ping:
|
|
|
|
- name: TEST | Copy
|
|
ansible.builtin.copy:
|
|
content: "Test file test"
|
|
dest: "/tmp/{{ prefix }}.txt"
|
|
mode: "0644"
|
|
|
|
- name: TEST | Slurp
|
|
ansible.builtin.slurp:
|
|
src: "/tmp/{{ prefix }}.txt"
|
|
register: _content
|
|
|
|
- name: TEST | Debug
|
|
ansible.builtin.debug:
|
|
msg: "{{ _content['content'] | b64decode }}"
|