---

- name: restart jenkins
  service: name=jenkins state=restarted
  
- name: extract jenkins-cli
  command: unzip -j -o "{{ jenkins_war_dir }}/jenkins-{{ jenkins_version }}.war" "WEB-INF/jenkins-cli.jar" -d "{{ jenkins_war_dir }}/"

---

- name: restart jenkins
  service: name=jenkins state=restarted
  
- name: extract jenkins-cli
  command: unzip -j -o "{{ jenkins_war_dir }}/jenkins.war" "WEB-INF/jenkins-cli.jar" -d "{{ jenkins_war_dir }}/"

Fix error when extracting jenkins-cli
Fix error when extracting jenkins-cli
