February 2018
Intermediate to advanced
200 pages
5h 51m
English
Tagging an instance is straightforward using the gce_tag module:
- name: set tag for the instance gce_tag: instance_name: app tags: http zone: "{{ zone }}" state: present pem_file: "{{ credentials_file }}" service_account_email: "{{ service_account_email }}" project_id: "{{ project_id }}" tags: - recipe5
Here we have just tagged the instance as http. We can specify any number of tags by giving a comma separated list.
Read now
Unlock full access