Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCTOPUS-625:Added playbook vars files #16

Merged
merged 2 commits into from
Mar 13, 2024

Conversation

pkenchap
Copy link
Collaborator

This PR is to add the vars files for the respective roles .

@pkenchap pkenchap self-assigned this Mar 12, 2024
@pkenchap pkenchap requested a review from prb112 March 12, 2024 09:34
hosts: all
vars_files:
- ../../../../vars/main.yml
- name: Download the Image from the URL and use to create image
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about kebab case so we follow a consistent role?
centosImage-create we should change to centos-image-create

we'd update rhcos too. I think we can leave this for the next PR (if it makes sense)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes , I thought to have centos-image-create , but ansible-lint was giving me error for this name with twice - in the name , so because of this , thought to name it as centosImage-create .

hosts: all
roles:
- rhcosImage-create
tasks:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ansible warning... unexpected parameter type in action: <class 'ansible.parsing.yaml.objects.AnsibleSequence'>

I'm wondering if we need something changed here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to make some changes here , even in the doc , I did not get what's wrong here , there is no proper explanation why it's wrong .

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh! that makes sense to me... thanks for checking

cpu_arch: "{{ image_cpu_arch_centos }}"
distro: "{{ image_distro_centos }}"
- name: Remove Centos images to openstack.
openstack.cloud.image:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we need to add e requirements.yaml #17 it might clean up the warning.

Copy link
Collaborator

@prb112 prb112 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@pkenchap pkenchap merged commit 3fbdbb7 into ocp-power-automation:main Mar 13, 2024
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants