I need you to add a task to manage repos in the base role. The task should perform actions to create the necessary repository entries in the host, then trigger an “update packages” type call to verify the host is running the latest packages. Repo files are currently located under library/repos/*. Care should be taken with the RHEL systems since they have a rolling-update model. Performing an update against the LinuxCOE content on a RHEL6 host will update everything and in turn, make a RHEL6.2 host into a RHEL6e host. For the SLES hosts, the service pack level should normally be maintained. SP2 should receive the SP2 repo definition. The errata hosts should receive the errata repo. Errata servers should have a marker file located at /etc/buildadmin with content errata.
I'm still getting acclimated to creating playbooks, roles, tasks in Ansible. Can anyone help me with this? I really would appreciate your help! Thank you in advance! Here are my repos: Debian deb6u3-sources.list : deb http://sdgxfs.sde.rdlabs.hpecorp.net/snapshots/ftp.debian.org/2011.11.26 squeeze main contrib deb7e-sources.list: # # deb cdrom:[Debian GNU/Linux 7.11.0 _Wheezy_ - Official amd64 DVD Binary-1 20160605-17:36]/ wheezy contrib main # deb cdrom:[Debian GNU/Linux 7.11.0 _Wheezy_ - Official amd64 DVD Binary-1 20160605-17:36]/ wheezy contrib main # Lines commented out by installer because it failed to verify: #deb http://security.debian.org/ wheezy/updates main contrib non-free #deb-src http://security.debian.org/ wheezy/updates main contrib non-free # wheezy-updates, previously known as 'volatile' # A network mirror was not selected during install. The following entries # are provided as examples, but you should amend them as appropriate # for your mirror of choice. # #deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free #deb-src http://ftp.debian.org/debian/ wheezy-updates main contrib non-free #deb http://linuxcoe9.houston.hpecorp.net/LinuxCOE/Debian/ wheezy main contrib non-free #deb-src http://linuxcoe9.houston.hpecorp.net/LinuxCOE/Debian/ wheezy main contrib non-free #deb http://linuxcoe9.houston.hpecorp.net/LinuxCOE/Debian/ wheezy-updates main contrib non-free #deb-src http://linuxcoe9.houston.hpecorp.net/LinuxCOE/Debian/ wheezy-updates main contrib non-free #deb http://ftp.debian.org/debian/ Debian7.11 main contrib non-free #deb-src http://ftp.debian.org/debian/ Debian7.11 main contrib non-free deb http://archive.debian.org/debian wheezy main contrib deb8e-sources.list : deb http://deb.debian.org/debian/ jessie main contrib non-free deb-src http://deb.debian.org/debian/ jessie main contrib non-free deb http://security.debian.org/ jessie/updates main contrib non-free deb-src http://security.debian.org/ jessie/updates main contrib non-free RedHat rh6ex64-linuxcoe.repo: # epel [RedHat-6.6Server-x86_64-EPEL] name=RedHat 6.6Server x86_64 - EPEL baseurl=http: //linuxcoe9.houston.hpecorp.net/linuxcoe/Fedora-EPEL/6Server/x86_64 enabled=1 gpgcheck=0 [RedHat-6.6Server-x86_64-optional] name=RedHat-6.6Server-x86_64-optional baseurl=http: //linuxcoe9.houston.hpecorp.net/LinuxCOE/RedHat-updates-yum/6.6Server-optional/en/os/x86_64 enabled=1 gpgcheck=0 # updates x86_64 [RedHat-6.6Server-x86_64-errata] name=RedHat-6.6Server-x86_64-errata baseurl=http: //linuxcoe9.houston.hpecorp.net/LinuxCOE/RedHat-updates-yum/6.6Server/en/os/x86_64 #exclude=kernel-smp* kernel-devel* kernel-bigmem* kernel-source* kernel-sourcecode* kernel-2* kernel-defaul* kernel-header* kernel-bigsmp kernel kernel-PAE* kernel-[0-9]* enabled=1 gpgcheck=0 # updates noarch [RedHat-6.6Server-i386-errata] name=RedHat-6.6Server-i386-errata baseurl=http: //linuxcoe9.houston.hpecorp.net/LinuxCOE/RedHat-updates-yum/6.6Server/en/os/i386 #exclude=kernel-smp* kernel-devel* kernel-bigmem* kernel-source* kernel-sourcecode* kernel-2* kernel-defaul* kernel-header* kernel-bigsmp kernel kernel-PAE* kernel-[0-9]* enabled=1 gpgcheck=0 rh6u2x64-linuxcoe.repo: [RedHat-6.2Server-x86_64] name=RedHat 6.2Server x86_64 baseurl=http: //linuxcoe9.houston.hpecorp.net/LinuxCOE/RedHat-yum/6.2Server/en/os/x86_64 enabled=1 gpgcheck=0 # epel [RedHat-6.2Server-x86_64-EPEL] name=RedHat 6.2Server x86_64 - EPEL baseurl=http://linuxcoe9.houston.hpecorp.net/LinuxCOE/Fedora-EPEL/6/x86_64 enabled=1 gpgcheck=0 # optional # Need to enable this for initial install, but be careful because if you update with it enabled it can break things [RedHat-6.2Server-x86_64-optional] name=RedHat-6.2Server-x86_64-optional baseurl=http: //linuxcoe9.houston.hpecorp.net/LinuxCOE/RedHat-updates-yum/6Server-optional/en/os/x86_64 enabled=0 gpgcheck=0 # updates x86_64 [RedHat-6.2Server-x86_64-errata] name=RedHat-6.2Server-x86_64-errata baseurl=http: //linuxcoe9.houston.hpecorp.net/LinuxCOE/RedHat-updates-yum/6.2Server/en/os/x86_64 #exclude=kernel-smp* kernel-devel* kernel-bigmem* kernel-source* kernel-sourcecode* kernel-2* kernel-defaul* kernel-header* kernel-bigsmp kernel kernel-PAE* kernel-[0-9]* enabled=0 gpgcheck=0 # updates noarch [RedHat-6.2Server-noarch-errata] name=RedHat-6.2Server-noarch-errata baseurl=http: //linuxcoe9.houston.hpecorp.net/LinuxCOE/RedHat-updates-yum/6.2Server/en/os/noarch #exclude=kernel-smp* kernel-devel* kernel-bigmem* kernel-source* kernel-sourcecode* kernel-2* kernel-defaul* kernel-header* kernel-bigsmp kernel kernel-PAE* kernel-[0-9]* enabled=0 gpgcheck=0 rh6u4x64-linuxcoe.repo : # epel [RedHat-6.4Server-x86_64-EPEL] name=RedHat 6.4Server x86_64 - EPEL baseurl=http://linuxcoe9.houston.hpecorp.net/LinuxCOE/Fedora-EPEL/6/x86_64 enabled=1 gpgcheck=0 [RedHat-6.4Server-x86_64-optional] name=RedHat-6.4Server-x86_64-optional baseurl=http: //linuxcoe9.houston.hpecorp.net/LinuxCOE/RedHat-updates-yum/6Server-optional/en/os/x86_64 enabled=0 gpgcheck=0 # updates x86_64 [RedHat-6.4Server-x86_64-errata] name=RedHat-6.4Server-x86_64-errata baseurl=http: //linuxcoe9.houston.hpecorp.net/LinuxCOE/RedHat-updates-yum/6.4Server/en/os/x86_64 #exclude=kernel-smp* kernel-devel* kernel-bigmem* kernel-source* kernel-sourcecode* kernel-2* kernel-defaul* kernel-header* kernel-bigsmp kernel kernel-PAE* kernel-[0-9]* enabled=0 gpgcheck=0 # updates noarch [RedHat-6.4Server-noarch-errata] name=RedHat-6.4Server-noarch-errata baseurl=http: //linuxcoe9.houston.hpecorp.net/LinuxCOE/RedHat-updates-yum/6.4Server/en/os/noarch #exclude=kernel-smp* kernel-devel* kernel-bigmem* kernel-source* kernel-sourcecode* kernel-2* kernel-defaul* kernel-header* kernel-bigsmp kernel kernel-PAE* kernel-[0-9]* enabled=0 gpgcheck=0 rh6u6x64-linuxcoe.repo: *# epel[RedHat-6.6Server-x86_64-EPEL]name=RedHat 6.6Server x86_64 - EPELbaseurl=http://linuxcoe9.houston.hpecorp.net/LinuxCOE/Fedora-EPEL/6/x86_64enabled=1gpgcheck=0[RedHat-6.6Server-x86_64-optional]name=RedHat-6.6Server-x86_64-optionalbaseurl=http://linuxcoe9.houston.hpecorp.net/LinuxCOE/RedHat-updates-yum/6.6Server-optional/en/os/x86_64enabled=0gpgcheck=0# updates x86_64[RedHat-6.6Server-x86_64-errata]name=RedHat-6.6Server-x86_64-erratabaseurl=http://linuxcoe9.houston.hpecorp.net/LinuxCOE/RedHat-updates-yum/6.6Server/en/os/x86_64#exclude=kernel-smp* kernel-devel* kernel-bigmem* kernel-source* kernel-sourcecode* kernel-2* kernel-defaul* kernel-header* kernel-bigsmp kernel kernel-PAE* kernel-[0-9]*enabled=0gpgcheck=0# updates noarch[RedHat-6.6Server-noarch-errata]name=RedHat-6.6Server-noarch-erratabaseurl=http://linuxcoe9.houston.hpecorp.net/LinuxCOE/RedHat-updates-yum/6.6Server/en/os/noarch#exclude=kernel-smp* kernel-devel* kernel-bigmem* kernel-source* kernel-sourcecode* kernel-2* kernel-defaul* kernel-header* kernel-bigsmp kernel kernel-PAE* kernel-[0-9]*enabled=0gpgcheck=0* rh7ex64-linuxcoe.repo: # updates x86_64 [RedHat-7.4Server-x86_64-errata] name=RedHat-7.4Server-x86_64-errata baseurl=http: //linuxcoe9.houston.hpecorp.net/LinuxCOE/RedHat-updates-yum/7.4Server/en/os/x86_64 #exclude=kernel-smp* kernel-devel* kernel-bigmem* kernel-source* kernel-sourcecode* kernel-2* kernel-defaul* kernel-header* kernel-bigsmp kernel kernel-PAE* kernel-[0-9]* enabled=1 gpgcheck=0 # epel [RedHat-7-x86_64-EPEL] name=RedHat 7 x86_64 - EPEL baseurl=http://linuxcoe9.houston.hpecorp.net/linuxcoe/Fedora-EPEL/7/x86_64 enabled=1 gpgcheck=0 rh7u0x64-linuxcoe.repo: # updates x86_64 [RedHat-7.0Server-x86_64-errata] name=RedHat-7.0Server-x86_64-errata baseurl=http: //linuxcoe9.houston.hpecorp.net/LinuxCOE/RedHat-updates-yum/7.0Server/en/os/x86_64 #exclude=kernel-smp* kernel-devel* kernel-bigmem* kernel-source* kernel-sourcecode* kernel-2* kernel-defaul* kernel-header* kernel-bigsmp kernel kernel-PAE* kernel-[0-9]* enabled=0 gpgcheck=0 I also have repos for SLES 11/12 and Ubuntu12 -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b14ca0dc-58ca-427c-ae57-1d4b2decc756%40googlegroups.com.