Find knowledge base article(s) by searching for keywords in the title e.g. type linux in the search box below
Find knowledge base article(s) by browsing the subject categories of articles
Technology quick references, cheatsheets, user manuals etc.
Shop Online through ShopifyLite
Tutorials on various IT applications.
Search Title    (UL:0 |SS:f)

Software >> Automation >> Ansible >> Modules >> yum_repository >> Examples


### Example

## yumrepo.yml

---
- name: configure yum repo
  hosts: all
  become: yes

  tasks:
     - name: Configure Appstream
       yum_repository:
          name: "Applications"
          description: "Apps"
          baseurl: file:///media/AppStream
          enabled: yes
          gpgcheck: 0
          # or gpgcheck: http://content....

     - name: Configure BaseOS
       yum_repository:
          name: "BaseOS"
          description: "Operating System"
          baseurl: file:///media/BaseOS
          enabled: yes

                   gpgcheck: 0



         

[ © 2008-2021 myfaqbase.com - A property of WPDC Consulting ]