ansible/tasks/sign_setup.yml

54 lines
1.5 KiB
YAML
Raw Normal View History

2013-06-03 23:22:13 +00:00
---
2013-06-14 15:25:28 +00:00
- name: put builder-repo on system
2015-04-27 19:50:21 +00:00
copy: src="{{ files }}/sign/{{ item }}" dest="/etc/yum.repos.d/{{ item }}"
2013-06-14 15:25:28 +00:00
with_items:
- builder-rpms.repo
2014-03-04 18:47:58 +00:00
when: is_rhel is defined
2013-06-14 15:25:28 +00:00
tags:
- config
- packages
2013-06-03 23:22:13 +00:00
- name: install sigul
2015-04-27 19:50:21 +00:00
yum: state=present name={{ item }}
2013-06-03 23:22:13 +00:00
with_items:
- sigul
2015-03-16 23:08:17 +00:00
- gnupg1
- rpm-sign
2015-03-25 17:16:31 +00:00
- bzip2
2013-06-03 23:22:13 +00:00
tags:
- packages
2013-06-03 23:50:47 +00:00
2013-06-04 17:21:28 +00:00
- name: setup /etc/sigul/bridge.conf file
2015-04-27 19:50:21 +00:00
template: src="{{ files }}/sign/bridge.conf.j2" dest=/etc/sigul/bridge.conf owner=root group=sigul mode=640
2013-06-04 17:19:01 +00:00
tags:
- config
2015-04-27 19:50:21 +00:00
when: inventory_hostname.startswith('sign')
2013-06-04 17:19:01 +00:00
- name: setup /etc/sigul/server.conf file
2015-04-27 19:50:21 +00:00
copy: src="{{ files }}/sign/server.conf.primary" dest=/etc/sigul/server.conf owner=root group=sigul mode=640
when: inventory_hostname.startswith('sign')
- name: setup secondary /etc/sigul/bridge.conf file
template: src="{{ files }}/sign/bridge.conf.secondary.j2" dest=/etc/sigul/bridge.conf owner=root group=sigul mode=640
tags:
- config
when: inventory_hostname.startswith('secondary')
- name: Install secondary arch koji configs
template: src="{{ files }}/sign/bridge.conf.secondary.j2" dest=/etc/sigul/bridge.conf owner=root group=sigul mode=640
tags:
- config
when: inventory_hostname.startswith('secondary')
- name: setup secondary koji config files
copy: src="{{ files }}/sign/{{ item }}" dest=/etc/{{ item }} owner=root group=root mode=644
with_items:
- koji-arm.conf
- koji-ppc.conf
- koji-s390.conf
2015-04-27 19:50:21 +00:00
when: inventory_hostname.startswith('secondary')
2013-06-04 17:19:01 +00:00
- name: setup gpg link
file: state=link src=/usr/bin/gpg1 dest=/usr/bin/gpg