You've already forked ansible-role-repo-raven
Compare commits
4 Commits
e5d10feb21
...
1.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 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_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_base_url: pkgs.dyn.su
|
||||||
raven_repo_proxy: false
|
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_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"
|
# remi_repo_gpg_key_url: "https://rpms.remirepo.net/RPM-GPG-KEY-remi2018"
|
||||||
|
|||||||
@@ -1,53 +1,18 @@
|
|||||||
galaxy_info:
|
galaxy_info:
|
||||||
author: your name
|
author: Aaron Guise
|
||||||
description: your role description
|
description: Install and configure the Raven Repository
|
||||||
company: your company (optional)
|
|
||||||
|
|
||||||
# If the issue tracker for your role is not on github, uncomment the
|
# If the issue tracker for your role is not on github, uncomment the
|
||||||
# next line and provide a value
|
# next line and provide a value
|
||||||
# issue_tracker_url: http://example.com/issue/tracker
|
issue_tracker_url: https://cybercinch.nz/git/ansible-roles/ansible-role-repo-raven/issues
|
||||||
|
license: MIT
|
||||||
# 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)
|
|
||||||
|
|
||||||
min_ansible_version: 2.9
|
min_ansible_version: 2.9
|
||||||
|
|
||||||
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
platforms:
|
||||||
# min_ansible_container_version:
|
- name: EL
|
||||||
|
versions:
|
||||||
#
|
- 8
|
||||||
# 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
|
|
||||||
|
|
||||||
galaxy_tags: []
|
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: []
|
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
|
hosts: all
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
tasks:
|
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:
|
assert:
|
||||||
that: true
|
that: "'httpd-itk' in ansible_facts.packages"
|
||||||
@@ -5,25 +5,16 @@
|
|||||||
hosts: all
|
hosts: all
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
tasks:
|
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
|
- name: install httpd-itk
|
||||||
dnf:
|
dnf:
|
||||||
name: httpd-itk
|
name: httpd-itk
|
||||||
update_cache: true
|
update_cache: true
|
||||||
state: installed
|
state: installed
|
||||||
|
|
||||||
- name: Example assertion
|
- name: Gather the package facts
|
||||||
|
package_facts:
|
||||||
|
manager: auto
|
||||||
|
|
||||||
|
- name: Is httpd-itk installed?
|
||||||
assert:
|
assert:
|
||||||
that: true
|
that: "'httpd-itk' in ansible_facts.packages"
|
||||||
|
|||||||
@@ -13,20 +13,9 @@
|
|||||||
key: /tmp/RPM-GPG-KEY-raven
|
key: /tmp/RPM-GPG-KEY-raven
|
||||||
|
|
||||||
- name: Install raven-release
|
- name: Install raven-release
|
||||||
dnf:
|
template:
|
||||||
name: "{{ raven_repo_url }}"
|
src: raven-repo.j2
|
||||||
state: present
|
dest: /etc/yum.repos.d/raven.repo
|
||||||
disable_gpg_check: false
|
|
||||||
|
|
||||||
- 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 Raven's GPG Key
|
||||||
file:
|
file:
|
||||||
|
|||||||
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