You've already forked ansible-role-repo-raven
Compare commits
5 Commits
e5d10feb21
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| adee67485d | |||
| df4c98227c | |||
| c0819f9648 | |||
| 812a49bdb9 | |||
| 3842188f54 |
@@ -3,6 +3,10 @@
|
||||
raven_repo_url: https://pkgs.dyn.su/el8/base/x86_64/raven-release-1.0-1.el8.noarch.rpm
|
||||
raven_repo_base_url: pkgs.dyn.su
|
||||
raven_repo_proxy: false
|
||||
raven_repo_enabled: '1'
|
||||
raven_repo_modular_enabled: '1'
|
||||
raven_repo_multimedia_enabled: '0'
|
||||
raven_repo_extras_enabled: '0'
|
||||
|
||||
# remi_repo_url: "https://rpms.remirepo.net/enterprise/remi-release-{{ ansible_distribution_major_version }}.rpm"
|
||||
# remi_repo_gpg_key_url: "https://rpms.remirepo.net/RPM-GPG-KEY-remi2018"
|
||||
|
||||
@@ -1,53 +1,18 @@
|
||||
galaxy_info:
|
||||
author: your name
|
||||
description: your role description
|
||||
company: your company (optional)
|
||||
author: Aaron Guise
|
||||
description: Install and configure the Raven Repository
|
||||
|
||||
# If the issue tracker for your role is not on github, uncomment the
|
||||
# next line and provide a value
|
||||
# issue_tracker_url: http://example.com/issue/tracker
|
||||
|
||||
# Choose a valid license ID from https://spdx.org - some suggested licenses:
|
||||
# - BSD-3-Clause (default)
|
||||
# - MIT
|
||||
# - GPL-2.0-or-later
|
||||
# - GPL-3.0-only
|
||||
# - Apache-2.0
|
||||
# - CC-BY-4.0
|
||||
license: license (GPL-2.0-or-later, MIT, etc)
|
||||
|
||||
issue_tracker_url: https://cybercinch.nz/git/ansible-roles/ansible-role-repo-raven/issues
|
||||
license: MIT
|
||||
min_ansible_version: 2.9
|
||||
|
||||
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
||||
# min_ansible_container_version:
|
||||
|
||||
#
|
||||
# Provide a list of supported platforms, and for each platform a list of versions.
|
||||
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
|
||||
# To view available platforms and versions (or releases), visit:
|
||||
# https://galaxy.ansible.com/api/v1/platforms/
|
||||
#
|
||||
# platforms:
|
||||
# - name: Fedora
|
||||
# versions:
|
||||
# - all
|
||||
# - 25
|
||||
# - name: SomePlatform
|
||||
# versions:
|
||||
# - all
|
||||
# - 1.0
|
||||
# - 7
|
||||
# - 99.99
|
||||
platforms:
|
||||
- name: EL
|
||||
versions:
|
||||
- 8
|
||||
|
||||
galaxy_tags: []
|
||||
# List tags for your role here, one per line. A tag is a keyword that describes
|
||||
# and categorizes the role. Users find roles by searching for tags. Be sure to
|
||||
# remove the '[]' above, if you add tags to this list.
|
||||
#
|
||||
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
|
||||
# Maximum 20 tags per role.
|
||||
|
||||
dependencies: []
|
||||
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
|
||||
# if you add dependencies to this list.
|
||||
|
||||
@@ -5,6 +5,16 @@
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Example assertion
|
||||
- name: install httpd-itk
|
||||
dnf:
|
||||
name: httpd-itk
|
||||
update_cache: true
|
||||
state: installed
|
||||
|
||||
- name: Gather the package facts
|
||||
package_facts:
|
||||
manager: auto
|
||||
|
||||
- name: Is httpd-itk installed?
|
||||
assert:
|
||||
that: true
|
||||
that: "'httpd-itk' in ansible_facts.packages"
|
||||
@@ -5,25 +5,16 @@
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Get ravens config
|
||||
shell: cat /etc/yum.repos.d/raven*
|
||||
register: hellfire
|
||||
|
||||
- debug:
|
||||
msg: "{{ hellfire.stdout_lines }}"
|
||||
|
||||
- name: Check available packages
|
||||
shell: dnf --enablerepo raven search itk
|
||||
register: shellout
|
||||
|
||||
- debug:
|
||||
msg: "{{ shellout.stdout }}"
|
||||
- name: install httpd-itk
|
||||
dnf:
|
||||
name: httpd-itk
|
||||
update_cache: true
|
||||
state: installed
|
||||
|
||||
- name: Example assertion
|
||||
- name: Gather the package facts
|
||||
package_facts:
|
||||
manager: auto
|
||||
|
||||
- name: Is httpd-itk installed?
|
||||
assert:
|
||||
that: true
|
||||
that: "'httpd-itk' in ansible_facts.packages"
|
||||
|
||||
@@ -13,22 +13,11 @@
|
||||
key: /tmp/RPM-GPG-KEY-raven
|
||||
|
||||
- name: Install raven-release
|
||||
dnf:
|
||||
name: "{{ raven_repo_url }}"
|
||||
state: present
|
||||
disable_gpg_check: false
|
||||
template:
|
||||
src: raven-repo.j2
|
||||
dest: /etc/yum.repos.d/raven.repo
|
||||
|
||||
- name: Force mirror url
|
||||
shell: |
|
||||
sed -e '/mirrorlist=.*/d' \
|
||||
-e 's/#.*baseurl=/baseurl=/' \
|
||||
-e 's|pkgs.dyn.su|{{ raven_repo_base_url }}|g' \
|
||||
-i /etc/yum.repos.d/raven*.repo
|
||||
args:
|
||||
warn: no
|
||||
changed_when: false
|
||||
|
||||
- name: Cleanup Raven's GPG Key
|
||||
- name: Cleanup tmp GPG Key
|
||||
file:
|
||||
path: /tmp/RPM-GPG-KEY-raven
|
||||
state: absent
|
||||
|
||||
27
templates/raven-repo.j2
Normal file
27
templates/raven-repo.j2
Normal file
@@ -0,0 +1,27 @@
|
||||
[raven]
|
||||
name=Raven's RPM repo for el$releasever-$basearch - base
|
||||
baseurl=https://{{ raven_repo_base_url }}/el8/base/$basearch/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-raven
|
||||
gpgcheck=1
|
||||
enabled={{ raven_repo_enabled }}
|
||||
|
||||
[raven-modular]
|
||||
name=Raven's Modular RPM repo for el$releasever-$basearch - modular
|
||||
baseurl=https://{{ raven_repo_base_url }}/el8/modular/$basearch/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-raven
|
||||
gpgcheck=1
|
||||
enabled={{ raven_repo_modular_enabled }}
|
||||
|
||||
[raven-multimedia]
|
||||
name=Raven's RPM repo for el$releasever-$basearch - multimedia
|
||||
baseurl=https://{{ raven_repo_base_url }}/el8/multimedia/$basearch/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-raven
|
||||
gpgcheck=1
|
||||
enabled={{ raven_repo_multimedia_enabled }}
|
||||
|
||||
[raven-extras]
|
||||
name=Raven's RPM repo for el$releasever-$basearch - extras
|
||||
baseurl=https://{{ raven_repo_base_url }}/el8/extras/$basearch/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-raven
|
||||
gpgcheck=0
|
||||
enabled={{ raven_repo_extras_enabled }}
|
||||
Reference in New Issue
Block a user