#2 Create an Ansible playbook to execute a 'communishift' role
Closed 2 years ago by dkirwan. Opened 2 years ago by lenkaseg.

UserStory

As a developer, I want to have a playbook that can execute a communshift Ansible role.

Tasks

  • Create an Ansible playbook: playbooks/manual/communishift.yml which executes a communishift Ansible role.
  • The playbook hosts should target: <target> (we don't know the target yet)
  • Create an Ansible role: roles/communishift.
  • Create a skeleton role
    -- roles/communishift/default/main.yml.
    -- roles/communishift/tasks/main.yml.
    -- roles/communishift/templates/.

Success Criteria

  • Members of the sysadmin-openshift group can run this playbook which executes an communishift Ansible role.

cat tasks/main.yml
---
- name: Hello
  ansible.builtin.debug:
    msg: "{{ item }}"
  with_items: "{{ appowners }}"


TASK [communishift : Hello] ****************************************************
***************************************
Wednesday 10 August 2022  09:18:33 +0000 (0:00:00.020)       0:00:00.020 ******
Wednesday 10 August 2022  09:18:33 +0000 (0:00:00.019)       0:00:00.019 ******
ok: [localhost] => (item=dkirwan) => {
    "msg": "dkirwan"
}
ok: [localhost] => (item=lenkaseg) => {
    "msg": "lenkaseg"
}
ok: [localhost] => (item=patrikp) => {
    "msg": "patrikp"
}

Metadata Update from @dkirwan:
- Issue status updated to: Closed (was: Open)

2 years ago

Log in to comment on this ticket.

Metadata
Boards 1
Communishift Status: Done