Giter Site home page Giter Site logo

davidclubb / ansible-role-satellite_repository Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rhtconsulting/ansible-role-satellite_repository

0.0 1.0 1.0 5 KB

Ansible role for enabling, disabling, and synchronizing repositories with Satellite 6 using hammer.

License: Apache License 2.0

ansible-role-satellite_repository's Introduction

satellite_repository

Ansible role for enabling, disabling, and synchronizing repositories with Satellite 6 using hammer.

Role Variables

parameter required default choices comments
state yes exists enable, disable
synchronize no False True, False
synchronize_async no True True, False
organization yes
product yes
repository yes
basearch no

Assumptions

Assumptions made by this Ansible role.

hammer Command

This Ansible role assumes that the hammer command is installed and configured on the host this role is being run against.

Example Playbooks

Enable Satellite 6 Repositories

- name: Enable Satellite 6 Repositories Example
  hosts: localhost
  roles:
   - role: satellite_repository
      state: enable
      organization: "{{ org }}"
      product: "Red Hat Enterprise Linux Server"
      repository: "Red Hat Enterprise Linux 7 Server - Extras"
      basearch: "x86_64"

    - role: satellite_repository
      state: enable
      organization: "{{ org }}"
      product: "Red Hat Enterprise Linux Server"
      repository: "Red Hat Enterprise Linux 7 Server"
      basearch: "x86_64"
      release: "7Server"

Disable Satellite 6 Repositories

- name: Disable Satellite 6 Repositories Example
  hosts: localhost
  roles:
   - role: satellite_repository
      state: disable
      organization: "{{ org }}"
      product: "Red Hat Enterprise Linux Server"
      repository: "Red Hat Enterprise Linux 7 Server - Extras"
      basearch: "x86_64"

    - role: satellite_repository
      state: disable
      organization: "{{ org }}"
      product: "Red Hat Enterprise Linux Server"
      repository: "Red Hat Enterprise Linux 7 Server"
      basearch: "x86_64"
      release: "7Server"

Enable and Synchronously Syncronize Satellite 6 Repositories

- name: Enable and Synchronously Syncronize Satellite 6 Repositories Example
  hosts: localhost
  roles:
   - role: satellite_repository
      state: disable
      organization: "{{ org }}"
      product: "Red Hat Enterprise Linux Server"
      repository: "Red Hat Enterprise Linux 7 Server - Extras"
      basearch: "x86_64"
      synchronize: True
      synchronize_async: False

    - role: satellite_repository
      state: disable
      organization: "{{ org }}"
      product: "Red Hat Enterprise Linux Server"
      repository: "Red Hat Enterprise Linux 7 Server"
      basearch: "x86_64"
      release: "7Server"
      synchronize: True
      synchronize_async: False

Enable and Asynchronously Syncronize Satellite 6 Repositories

- name: Enable and Asynchronously Syncronize Satellite 6 Repositories Example
  hosts: localhost
  roles:
   - role: satellite_repository
      state: disable
      organization: "{{ org }}"
      product: "Red Hat Enterprise Linux Server"
      repository: "Red Hat Enterprise Linux 7 Server - Extras"
      basearch: "x86_64"
      synchronize: True
      synchronize_async: True

    - role: satellite_repository
      state: disable
      organization: "{{ org }}"
      product: "Red Hat Enterprise Linux Server"
      repository: "Red Hat Enterprise Linux 7 Server"
      basearch: "x86_64"
      release: "7Server"
      synchronize: True
      synchronize_async: True
  post_tasks:
    - name: Wait for Repository syncronizations
      command: >
        hammer task progress \
          --id {{ item }}
      with_items: "{{ satellite_repository_syncronization_tasks }}"

ansible-role-satellite_repository's People

Contributors

itewk avatar

Watchers

 avatar

Forkers

unixonboard

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.