Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible version problem #1245

Open
Parathantl opened this issue Aug 12, 2019 · 6 comments
Open

Ansible version problem #1245

Parathantl opened this issue Aug 12, 2019 · 6 comments
Labels
Subject: Ansible Playbook Related to the maintenance and upkeep associated with an Ansible Playbook for Islandora. Always also

Comments

@Parathantl
Copy link

Parathantl commented Aug 12, 2019

I cloned the claw git repository first and then installed ansible using these following commands

$ sudo apt update
$ sudo apt install software-properties-common
$ sudo apt-add-repository --yes --update ppa:ansible/ansible
$ sudo apt install ansible

but I got the error while doing vagrant up. It was related to ansible compilation error of import_module problem.

Screenshot from 2019-08-12 14-22-48

The
ansible version is 2.3.0
vagrant version 2.0.4
virtualbox version 5.2.18

Therefore, I tried to install the 2.8 version of ansible using the following commands

$ sudo apt-get install python-pip python-dev"
$ sudo -H pip install ansible==2.8

After updating ansible version I could solve that problem and installed claw successfully.

@whikloj
Copy link
Member

whikloj commented Aug 12, 2019

I think we need to require an Ansible version now too.

Seems trivial if the information on the following page is still valid.
https://www.jeffgeerling.com/blog/2018/require-minimum-ansible-version-your-playbook

@Parathantl
Copy link
Author

After updating to new version I could able to install the modules. But after they installed, ensuring process ran and finally it gave an error as in the article you mentioned.

"Ansible failed to complete successfully"

20190812_195025 1

@whikloj
Copy link
Member

whikloj commented Aug 13, 2019

Are you running the ansible-playbook command manually or just running vagrant up?

I ask because I tried to run the ansible-playbook command yesterday and seemed to hit a problem with the MySQL roles as well.

@Parathantl
Copy link
Author

I just tried with vagrant up. Before updating the ansible version I got MySQL problem which related to ansible import_task module while downloading.
After updating to ansible 2.8 I got the above problem (2nd one)

@DonRichards
Copy link
Member

I'm having the exact same issue.

Screen Shot

$ ansible --version

ansible 2.8.3
  config file = /Users/don/Desktop/github/claw-playbook/ansible.cfg
  configured module search path = ['/Users/don/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/Cellar/ansible/2.8.3/libexec/lib/python3.7/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 3.7.4 (default, Jul  9 2019, 18:13:23) [Clang 10.0.1 (clang-1001.0.46.4)]

$ vagrant --version
Vagrant 2.2.5

$ vboxmanage --version
6.0.10r132072

I'm not sure if this is a "me" issue or not but this is what I'm seeing. I'm running on osx

This is what localhost looks like for me.

Screen Shot 2019-08-14 at 1 05 05 PM

@attiks
Copy link

attiks commented Jan 24, 2020

You need to use another ansible version

diff --git a/docker/ansible/Dockerfile b/docker/ansible/Dockerfile
index 1ab5c73..281a536 100644
--- a/docker/ansible/Dockerfile
+++ b/docker/ansible/Dockerfile
@@ -6,7 +6,9 @@ ENV ISLANDORA_DISTRO="centos/7" \
 WORKDIR /root/playbook
 
 RUN yum -y install epel-release && \
-    yum -y install git ansible openssh-clients
+    yum -y install git openssh-clients && \
+    yum -y install python-pip python-dev && \
+    pip install ansible==2.7.10
 
 COPY entrypoint.sh /bin/

PS: I'm using Islandora-Devops/islandora-playbook#127

@kstapelfeldt kstapelfeldt added Subject: Ansible Playbook Related to the maintenance and upkeep associated with an Ansible Playbook for Islandora. Always also and removed Ansible labels Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Subject: Ansible Playbook Related to the maintenance and upkeep associated with an Ansible Playbook for Islandora. Always also
Projects
Development

No branches or pull requests

6 participants