daily pastebin goal
96%
SHARE
TWEET

Untitled

a guest Mar 21st, 2019 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---
  2. - name: expect module
  3.   hosts: all
  4.   vars:
  5.     user: "anis-user"
  6.     password: "somepassword_)?"
  7.   tasks:
  8.       - name: testing expect_ckan
  9.         expect:
  10.           command: "{{playbook_dir}}/expecting_ckan.sh {{user}}"
  11.           responses:
  12.             'Create new user: .*\? \[y\/n\]': 'y'
  13.             'Password': '{{password}}'
  14.             'Confirm password': '{{password}}'
  15.           echo: yes
  16.         register: expect_dumps
  17.         changed_when: "'Added' in expect_dumps.stdout"
  18.         failed_when: "expect_dumps.rc != 0"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top