unxmaal / irix_ansible

Ansible plays for post-installation bootstrap and provisioning of IRIX hosts
11 stars 4 forks source link

Ansible version issues #6

Closed jupo42 closed 5 years ago

jupo42 commented 5 years ago

I know this was brought up in the discord several weeks ago, but I also encountered it and wanted to make sure it's documented here for future fixes.

When trying to run the bootstrap playbook using the Ansible provisioned inside the booterizer VM when following the booterizer readme (using apt install), it fails with the following errors:

root@booterizer:/home/vagrant/irix_ansible# ansible-playbook -i inventory.yml bootstrap.yml --vault-password-file /home/vagrant/.vault_pass.txt 
[DEPRECATION WARNING]: Included file '/home/vagrant/irix_ansible/set_date_manually.yml ' not found, however since this include is not explicitly marked as 'static: yes', we will try and 
include it dynamically later. In the future, this will be an error unless 'static: no' is used on the include task. If you do not want missing includes to be considered dynamic, use 
'static: yes' on the include or set the global ansible.cfg options to make all includes static for tasks and/or handlers. This feature will be removed in version 2.12. Deprecation 
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: Included file '/home/vagrant/irix_ansible/add_ansible_user.yml  ' not found, however since this include is not explicitly marked as 'static: yes', we will try and 
include it dynamically later. In the future, this will be an error unless 'static: no' is used on the include task. If you do not want missing includes to be considered dynamic, use 
'static: yes' on the include or set the global ansible.cfg options to make all includes static for tasks and/or handlers. This feature will be removed in version 2.12. Deprecation 
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: Included file '/home/vagrant/irix_ansible/fetch_bundles.yml     ' not found, however since this include is not explicitly marked as 'static: yes', we will try and 
include it dynamically later. In the future, this will be an error unless 'static: no' is used on the include task. If you do not want missing includes to be considered dynamic, use 
'static: yes' on the include or set the global ansible.cfg options to make all includes static for tasks and/or handlers. This feature will be removed in version 2.12. Deprecation 
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: Included file '/home/vagrant/irix_ansible/install_bundles.yml   ' not found, however since this include is not explicitly marked as 'static: yes', we will try and 
include it dynamically later. In the future, this will be an error unless 'static: no' is used on the include task. If you do not want missing includes to be considered dynamic, use 
'static: yes' on the include or set the global ansible.cfg options to make all includes static for tasks and/or handlers. This feature will be removed in version 2.12. Deprecation 
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: Included file '/home/vagrant/irix_ansible/setup_sshd.yml        ' not found, however since this include is not explicitly marked as 'static: yes', we will try and 
include it dynamically later. In the future, this will be an error unless 'static: no' is used on the include task. If you do not want missing includes to be considered dynamic, use 
'static: yes' on the include or set the global ansible.cfg options to make all includes static for tasks and/or handlers. This feature will be removed in version 2.12. Deprecation 
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

PLAY [initial setup] ***********************************************************************************************************************************************************************

TASK [bootstrap : include] *****************************************************************************************************************************************************************
fatal: [emile]: FAILED! => {
    "reason": "Could not find or access '/home/vagrant/irix_ansible/set_date_manually.yml ' on the Ansible Controller."
}

One way this can be worked around is by doing apt remove ansible, apt install python-pip, and pip install ansible==2.7.6 from within vagrant ssh.

unxmaal commented 5 years ago

Fixed with latest commit.