---
- name: install packages
  yum:
    name: "{{ item }}"
    state: installed
  with_items:
  - python-gcloud

---
- name: install packages
  yum:
    name: "{{ item }}"
    state: installed
  with_items:
  - python-gcloud
  - gcloud

Install the gcloud package which has gcloud cli
Install the gcloud package which has gcloud cli
