tripleo-ansible/tripleo_ansible/roles/tripleo_redhat_enforce
Sofer Athlan-Guyot 50f3e0ff3f Allow rhsm subscription test to be overrided in RHOSP deployment.
This allow the master playbook used for update to set
tripleo_redhat_enforce to false on a per role basis on Red Hat
environment.

The default in defaults/main.yml is now "true" so that it keeps its
behavior of being run by default if nothing is changed in the role
definition.

We then avoid running it on other plateform than Red Hat by adding an
explicit test in that tasks/main.yml file.

Overall the behavior is as follows:

  | Red Hat Env | tripleo_enforced     | Test run |
  |-------------+----------------------+----------|
  | True        | Unset                | Yes      |
  | True        | Set to true in role  | Yes      |
  | True        | Set to false in role | No       |
  | False       | Doesn't matter       | No       |

Change-Id: I6268a01d16f8288bf862003d19184fc93b88282a
Partial-Bug: #1912512
2021-01-25 15:23:46 +01:00
..
defaults Allow rhsm subscription test to be overrided in RHOSP deployment. 2021-01-25 15:23:46 +01:00
meta tripleo_redhat_enforce new role to enforce RHOSP constraints. 2020-04-28 10:05:46 +02:00
molecule/default Don't set capabilities in priviledge mode 2021-01-15 17:54:17 +02:00
tasks Allow rhsm subscription test to be overrided in RHOSP deployment. 2021-01-25 15:23:46 +01:00
vars Allow rhsm subscription test to be overrided in RHOSP deployment. 2021-01-25 15:23:46 +01:00