[root@ggnmaster2 jenkins]# ls
hosts site.yml
[root@ggnmaster2 jenkins]# more site.yml
Your indentation is incorrect, indentation in YAML is very important.
So start by reading this to get a basic understanding of YAML
https://docs.ansible.com/ansible/latest/YAMLSyntax.html
Then look at the playbooks examples here to see how they are indented
https://docs.ansible.com/ansible/latest/playbooks_intro.html#playbook-language-example
Hi Kai,
Thanks for your reply, I resolved the error I was previously facing. Now I have issues with Jenkins deployment :-
[root@ggnmaster2 jenkins]# ansible-playbook site.yml
PLAY [Configure CI server] *********************************************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [git : install git] ***********************************************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.java : Include OS-specific variables.] ***************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.java : Include OS-specific variables for Fedora.] ****************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.java : Include version-specific variables for Ubuntu.] ***********************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.java : Define java_packages.] ************************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.java : include] **************************************************************************************************************************************
included: /etc/ansible/roles/geerlingguy.java/tasks/setup-RedHat.yml for ggnmaster1.tb.ores.del.equant.com
TASK [geerlingguy.java : Ensure Java is installed.] ********************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com] => (item=java-1.7.0-openjdk)
TASK [geerlingguy.java : include] **************************************************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.java : include] **************************************************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.java : Set JAVA_HOME if configured.] *****************************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Include OS-Specific variables] *************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Define jenkins_repo_url] *******************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Define jenkins_repo_key_url] ***************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Define jenkins_pkg_url] ********************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Ensure dependencies are installed.] ********************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Ensure Jenkins repo is installed.] *********************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Add Jenkins repo GPG key.] *****************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Download specific Jenkins version.] ********************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Check if we downloaded a specific version of Jenkins.] *************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Install our specific version of Jenkins.] **************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Ensure Jenkins is installed.] **************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Ensure dependencies are installed.] ********************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Add Jenkins apt repository key.] ***********************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Add Jenkins apt repository.] ***************************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Download specific Jenkins version.] ********************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Check if we downloaded a specific version of Jenkins.] *************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Install our specific version of Jenkins.] **************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Ensure Jenkins is installed.] **************************************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Modify variables in init file] *************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com] => (item={u’option’: u’JENKINS_ARGS’, u’value’: u’–prefix=‘})
ok: [ggnmaster1.tb.ores.del.equant.com] => (item={u’option’: u’JENKINS_JAVA_OPTIONS’, u’value’: u’-Djenkins.install.runSetupWizard=false’})
TASK [geerlingguy.jenkins : Set the Jenkins home directory] ************************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Immediately restart Jenkins on init config changes.] ***************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Set HTTP port in Jenkins config.] **********************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Ensure jenkins_home /var/lib/jenkins exists] ***********************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Create custom init scripts directory.] *****************************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Immediately restart Jenkins on http or user changes.] **************************************************************************************
skipping: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Ensure Jenkins is started and runs on startup.] ********************************************************************************************
ok: [ggnmaster1.tb.ores.del.equant.com]
TASK [geerlingguy.jenkins : Wait for Jenkins to start up before proceeding.] *******************************************************************************************
FAILED - RETRYING: Wait for Jenkins to start up before proceeding. (60 retries left).
FAILED - RETRYING: Wait for Jenkins to start up before proceeding. (59 retries left).
FAILED - RETRYING: Wait for Jenkins to start up before proceeding. (58 retries left).
^CProcess WorkerProcess-38:
Traceback (most recent call last):
File “/usr/lib64/python2.7/multiprocessing/process.py”, line 258, in _bootstrap
self.run()
File “/usr/lib/python2.7/site-packages/ansible/executor/process/worker.py”, line 116, in run
[ERROR]: User interrupted execution
[root@ggnmaster2 jenkins]#