Public paste
Undefined
By: Guest | Date: Mar 13 2020 14:41 | Format: None | Expires: never | Size: 670 B | Hits: 396

  1.  hosts: nomad-cluster
  2.   roles:
  3.     - role: brianshumate.nomad
  4.       vars:
  5.         nomad_os_packages:
  6.           - curl
  7.           - git
  8.           - "{{ 'python3-libselinux' if ( ansible_distribution_major_version | int > 7) else  'libselinux-python' }}"
  9.           - unzip
  10.   tags: nomad-cluster
  11.   tasks:
  12.     - name: Start nomad service
  13.       service: name=nomad state=started enabled=yes
  14.  
  15.  
  16. failed: [centos8-host] (item=libselinux-python) => {"ansible_loop_var": "item", "changed": false, "failures": ["No package libselinux-python available."], "item": "libselinux-python", "msg": "Failed to install some of the specified packages", "rc": 1, "results": []}
  17.