Files
awx-operator/roles/installer
Dimitri Savineau ba3b6f5436 installer: fix undefined limit key in config
When the task_resource_requirements variable has no "limits" key (which
is the default value) then the config template generation fails

----------------------------------
looking for "config.yaml.j2" at "/opt/ansible/roles/installer/templates/config.yaml.j2"
File lookup using /opt/ansible/roles/installer/templates/config.yaml.j2 as file
fatal: [localhost]: FAILED! => {
"msg": "The task includes an option with an undefined variable. The error was: the inline if-expression on line 36 evaluated to false and no else section was defined.

The error appears to be in /opt/ansible/roles/installer/tasks/resources_configuration.yml: line 30, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: Apply Resources
 ^ here
----------------------------------

The current condition doesn't have a else statement so the template fails
when the "limits" key isn't present.
This rewrite the current if/else statement in jinja template.

Signed-off-by: Dimitri Savineau <[email protected]>
2022-05-24 09:29:36 -04:00
..
2021-06-22 14:52:54 -04:00
2021-02-05 22:23:23 +01:00

AWX

This role builds and maintains an Ansible Tower instance inside of Kubernetes.

Requirements

TODO.

Role Variables

See defaults/main.yml for all the role variables that you can override.

TODO: add variable description table.

Dependencies

N/A

Example Playbook

- hosts: localhost
  connection: local
  roles:
     - awx

License

MIT / BSD