Open giovannisciortino opened 5 years ago
I have seen that the Travis CI build fails for this PR but this maybe isn't caused by changes introduced by my PR.
The build fails with the errors reported below but I haven't modified the lines 307,886,885 and 1163. Furthermore I modified temporary my commit not introducing any change in any file and the build process fails with the same errors.
python -m flake8 --ignore E501,W504 ./bootstrap.py ./setup.py
python -m pylint --reports=n --disable=I --ignore-imports=y ./bootstrap.py ./setup.py
************* Module bootstrap
bootstrap.py:307:4: R1705: Unnecessary "elif" after "return" (no-else-return)
bootstrap.py:866:4: R1705: Unnecessary "elif" after "return" (no-else-return)
bootstrap.py:885:4: R1705: Unnecessary "elif" after "return" (no-else-return)
bootstrap.py:1163:18: W1505: Using deprecated method linux_distribution() (deprecated-method)
bootstrap.py:1165:18: W1505: Using deprecated method dist() (deprecated-method)
-----------------------------------
Your code has been rated at 9.95/10
make: *** [lint] Error 12
The command "make test" exited with 2.
Done. Your build exited with 1.
Satellite from version 6.4 support the execution on ansible roles associated to hosts.
As reported in #308 , sometimes could be useful to run ansible roles associated to host just after the host registration trough bootstrap.py.
In this PR, a new flag on bootstrap.py script has been added in order to trigger automatically the execution of the Ansible roles associated to the host after its registration.
Note: The ansible roles can be associated to an host during registration process associating them to a hostgroup.
This new feature is disabled by default, it's enabled only when bootstrap.py is called with the flag --run-ansible-roles. Below an output of the execution of bootstrap.py with this flag: