1c95063442
In order to keep things clean, let's re-use the role we have for setting up repos. Change-Id: I989c4d45e28f94767ff9d63937d273d0542312f5
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
- hosts: all
|
|
roles:
|
|
- name: ensure-package-repositories
|
|
repositories_list:
|
|
- repo: ppa:projectatomic/ppa
|
|
|
|
tasks:
|
|
- name: Install packages
|
|
become: true
|
|
package:
|
|
name:
|
|
- skopeo
|
|
state: present
|
|
|
|
# This happens in the pre-playbook of the
|
|
# opendev-buildset-registry job. Since we're testing these roles
|
|
# in opendev, and we're running a second buildset registry, we
|
|
# need to do the same here for it.
|
|
- name: Open the IPv4 port for the second buildset registry
|
|
become: true
|
|
iptables:
|
|
action: insert
|
|
chain: openstack-INPUT
|
|
destination_port: '9000'
|
|
jump: ACCEPT
|
|
match: tcp
|
|
ctstate: NEW
|
|
protocol: tcp
|
|
ip_version: ipv4
|
|
- name: Open the IPv6 port for the second buildset registry
|
|
become: true
|
|
iptables:
|
|
action: insert
|
|
chain: openstack-INPUT
|
|
destination_port: '9000'
|
|
jump: ACCEPT
|
|
match: tcp
|
|
ctstate: NEW
|
|
protocol: tcp
|
|
ip_version: ipv6
|