This role centralizes common tasks used across different roles for the WeIRDO project.
For default values, see defaults/main.yml
base_packages
: A list of packages to install by defaultdebug_packages
: A list of packages meant for debug purposes to install by defaultjob_name
: Name of the job (defaults to Jenkins-provided environment variable)build_numer
: Build number of the job (defaults to Jenkins-provided environment variable)log_root
: Root directory where the debug logs will be sent tolog_destination
: Subdirectory where the debug logs will be sent tolog_paths
: Log paths to recover by defaultdebug_commands
: Hash of debug commands that will be run and output to log files
logs
: Recovers basic logs by defaultpackages
: Ensures required dependencies are installedsetup
: Sets up log directory, configures sysstatrescue
: Task that gets included in rescue blocks to notify different handlers
ansible-role-ci-centos to be installed as ci-centos
when the role ci-centos is used to provision nodes.
- name: Run packstack scenario001 tests
hosts: openstack_nodes
force_handlers: True
roles:
- role: "common"
- { role: "packstack", test: "scenario001" }
- { role: "common", action: "logs" }