toozej / ansible

Ansible
GNU General Public License v3.0
1 stars 0 forks source link

make repo files persist DNF #108

Closed toozej closed 5 years ago

toozej commented 5 years ago

repo files are not persisting after installing (or attempting to install) packages from them for both the repo-extra role and the docker role. However they should persist so that they can be used to update packages which require those repos.

should start by confirming this occurs on Fedora 30 (python3), Fedora 29 (python2 and python3) VMs as it occurred recently on my Fedora 30 laptop. If it does happen, then likely need to change how I'm laying out repos

example of docker repo:

PLAY [Setup Docker environment] **************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] ***********************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [docker : include_tasks] ****************************************************************************************************************************************************************************************************************
included: /tmp/ansible/roles/docker/tasks/setup-RedHat.yml for localhost

TASK [docker : Ensure old versions of Docker are not installed.] *****************************************************************************************************************************************************************************
ok: [localhost]

TASK [docker : Add Docker GPG key.] **********************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [docker : Add Docker repository.] *******************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [docker : Configure Docker Edge repo.] **************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [docker : Configure Docker Test repo.] **************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [docker : include_tasks] ****************************************************************************************************************************************************************************************************************
skipping: [localhost]

TASK [docker : Install Docker.] **************************************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "failures": ["No package docker-ce available."], "msg": "Failed to install some of the specified packages", "rc": 1, "results": []}
    to retry, use: --limit @/tmp/ansible/playbooks/laptop.retry

example of repo-extra (rpmfusion):

PLAY [Setup common environment] ******************************************************************************************************************************

TASK [Gathering Facts] ***************************************************************************************************************************************
ok: [localhost]

TASK [include RPMFusion repo on RedHat-based systems] ********************************************************************************************************

TASK [repo-extra : install rpmfusion dnf repo for Fedora] ****************************************************************************************************
changed: [localhost] => (item=['http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-30.noarch.rpm', 'http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-30.noarch.rpm'])

TASK [repo-extra : install rpmfusion dnf repo for RedHat] ****************************************************************************************************
skipping: [localhost] => (item=[]) 

TASK [repo-extra : install rpmfusion yum repo for RedHat] ****************************************************************************************************
skipping: [localhost] => (item=[]) 

TASK [ansible-enablement : Import EPEL GPG key on RHEL-based systems] ****************************************************************************************
skipping: [localhost]
...

TASK [common : install the latest version of archiving tools] ************************************************************************************************
ok: [localhost] => (item=zip)
failed: [localhost] (item=unrar) => {"changed": false, "failures": ["No package unrar available."], "item": "unrar", "msg": "Failed to install some of the specified packages", "rc": 1, "results": []}
changed: [localhost] => (item=p7zip)
ok: [localhost] => (item=pigz)

RUNNING HANDLER [common : Restart ssh] ***********************************************************************************************************************
    to retry, use: --limit @/tmp/ansible/playbooks/laptop.retry

PLAY RECAP ***************************************************************************************************************************************************
localhost                  : ok=19   changed=14   unreachable=0    failed=1   
[james@louis ~]$ 
[james@louis ~]$ ls /etc/yum.repos.d/
fedora-cisco-openh264.repo  fedora-modular.repo  fedora.repo  fedora-updates-modular.repo  fedora-updates.repo  fedora-updates-testing-modular.repo  fedora-updates-testing.repo
toozej commented 5 years ago

should be sorted in branch toozej_ansible_python3 commit c5cfd95