August 2018
Intermediate to advanced
466 pages
10h 23m
English
In this section, let's integrate our GitHub repository with Jenkins. By integrating the GitHub repository, we can take advantage of the GitHub code review and collaboration tools.
First, we will create a new GitHub repository, I will call this repository chapter12_example2. We can clone this repository locally and add the files we wanted to the repository. In this case, I am adding an Ansible playbook that copies the output of the show version command to a file:
$ cat chapter12_playbook.yml---- name: show version hosts: "ios-devices" gather_facts: false connection: local vars: cli: host: "{{ ansible_host }}" username: "{{ ansible_user }}" password: "{{ ansible_password }}" tasks: - name: show version ...