Icinga / ansible-playbooks

Ansible Playbook for Icinga 2
GNU General Public License v2.0
225 stars 122 forks source link

Unable to install on Ubuntu 14.04 #4

Closed corny closed 10 years ago

corny commented 10 years ago

If I run the role icinga2-ansible-no-ui on a freshly installed Ubuntu 14.04 as suggested in the Getting Started instructions, it fails with the following output:

TASK: [icinga2-ansible-no-ui | Install Icinga2 on Debian OS family] *********** 
failed: [icinga.example.com] => (item={'package': 'icinga2'}) => {"failed": true, "item": {"package": "icinga2"}}
stderr: E: Unable to correct problems, you have held broken packages.

stdout: Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 icinga2 : Depends: icinga2-bin (= 2.1.0~icingaautorelease201409110730) but it is not going to be installed
           Depends: icinga2-common (= 2.1.0~icingaautorelease201409110730) but it is not going to be installed

msg: 'apt-get install 'icinga2' ' failed: E: Unable to correct problems, you have held broken packages.

changed: [icinga.example.com] => (item={'package': 'nagios-plugins'})

FATAL: all hosts have already failed -- aborting

apt-get install icinga2 fails with the same error message. I already executed apt-get install -f, apt-get update and apt-get dist-upgrade without errors. Any suggestions?

onsails commented 10 years ago

I've solved it by overriding icinga2_deb_repos:

icinga2_deb_repos:
  - { repo: "ppa:formorer/icinga" }
corny commented 10 years ago

Thanks a lot for you hint. It works with ppa:formorer/icinga