ansible vagrant centos jenkins
[root@localhost ~]# vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'generic/centos7' version '1.9.24' is up to date...
==> default: A newer version of the box 'generic/centos7' for provider 'virtualbox' is
==> default: available! You currently have version '1.9.24'. The latest is version
==> default: '1.9.26'. Run `vagrant box update` to update.
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
==> default: Machine booted and ready!
[default] GuestAdditions 5.2.32 running --- OK.
==> default: Checking for guest additions in VM...
==> default: [vagrant-hostsupdater] Checking for host entries
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
You have new mail in /var/spool/mail/root
[root@localhost ~]# vi V
Vagrantfile Videos/ VirtualBox VMs/
[root@localhost ~]# vi Vagrantfile
[root@localhost ~]# vagrant provision
==> default: [vagrant-hostsupdater] Checking for host entries
==> default: Running provisioner: ansible...
Vagrant has automatically selected the compatibility mode '2.0'
according to the Ansible version installed (2.8.4).
Alternatively, the compatibility mode can be specified in your Vagrantfile:
https://www.vagrantup.com/docs/provisioning/ansible_common.html#compatibility_mode
default: Running ansible-playbook...
PLAY [Install Jenkins] *********************************************************
TASK [Install yum] *************************************************************
ok: [default]
TASK [Install yum] *************************************************************
ok: [default]
TASK [Download jenkins.repo] ***************************************************
ok: [default]
TASK [Import Jenkins Key] ******************************************************
ok: [default]
TASK [Install Jenkins] *********************************************************
ok: [default]
TASK [Start & Enable Jenkins] **************************************************
ok: [default]
TASK [Sleep for 30 seconds and continue with play] *****************************
ok: [default]
TASK [Get init password Jenkins] ***********************************************
ok: [default]
TASK [Print init password Jenkins] *********************************************
ok: [default] => {
"result.stdout": "cbb3706c765c49099652311f198cec4b"
}
PLAY RECAP *********************************************************************
default : ok=9 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[root@localhost ~]#
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'generic/centos7' version '1.9.24' is up to date...
==> default: A newer version of the box 'generic/centos7' for provider 'virtualbox' is
==> default: available! You currently have version '1.9.24'. The latest is version
==> default: '1.9.26'. Run `vagrant box update` to update.
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
==> default: Machine booted and ready!
[default] GuestAdditions 5.2.32 running --- OK.
==> default: Checking for guest additions in VM...
==> default: [vagrant-hostsupdater] Checking for host entries
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
You have new mail in /var/spool/mail/root
[root@localhost ~]# vi V
Vagrantfile Videos/ VirtualBox VMs/
[root@localhost ~]# vi Vagrantfile
[root@localhost ~]# vagrant provision
==> default: [vagrant-hostsupdater] Checking for host entries
==> default: Running provisioner: ansible...
Vagrant has automatically selected the compatibility mode '2.0'
according to the Ansible version installed (2.8.4).
Alternatively, the compatibility mode can be specified in your Vagrantfile:
https://www.vagrantup.com/docs/provisioning/ansible_common.html#compatibility_mode
default: Running ansible-playbook...
PLAY [Install Jenkins] *********************************************************
TASK [Install yum] *************************************************************
ok: [default]
TASK [Install yum] *************************************************************
ok: [default]
TASK [Download jenkins.repo] ***************************************************
ok: [default]
TASK [Import Jenkins Key] ******************************************************
ok: [default]
TASK [Install Jenkins] *********************************************************
ok: [default]
TASK [Start & Enable Jenkins] **************************************************
ok: [default]
TASK [Sleep for 30 seconds and continue with play] *****************************
ok: [default]
TASK [Get init password Jenkins] ***********************************************
ok: [default]
TASK [Print init password Jenkins] *********************************************
ok: [default] => {
"result.stdout": "cbb3706c765c49099652311f198cec4b"
}
PLAY RECAP *********************************************************************
default : ok=9 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[root@localhost ~]#
Comments
Post a Comment