CoffeeITWorks / ansible_burp2_server

Ansible role to deploy burp2 server
MIT License
10 stars 9 forks source link

Role adds configuration to PowerTools repo but doesn't ensure the repository exists #81

Closed guimaluf closed 3 years ago

guimaluf commented 3 years ago

I'm applying the role into a Centos 8 server and it is failing on the below task.

TASK [coffeeitworks.burp2_server : build-burp | install build dependencies] *******************
fatal: [burp-backup]: FAILED! => {
    "changed": false,
    "rc": 1,
    "results": []
}

MSG:

Cannot find a valid baseurl for repo: powertools

https://github.com/CoffeeITWorks/ansible_burp2_server/blob/master/tasks/1_2_redhat.yml#L21-L30

Although the role adds an entry to the PowerTools repository file it doesn't ensure there is an existing repository. Leading to the above failure.


# cat /etc/yum.repos.d/CentOS-Linux-PowerTools.repo                                                                                                                    

[powertools]
enabled = 1
pablodav commented 3 years ago

Thanks you for reporting this, I'm testing a possible fix.

Not sure why never got this issue during automatic tests.

See example: https://github.com/CoffeeITWorks/ansible_burp2_server/runs/2699710925?check_suite_focus=true#step:4:209