Tuesday, January 2, 2018

linux Ansible playbook with pbrun not working

linux Ansible playbook with pbrun not working



?????- playbook.yml:

  --- - ?????: ??? ?????: - ???: test shell: chdir = / home / tibco pbrun su - tibco sh test.sh sudo: yes  

??????:

  [root @ c0043724 ????????? ] # ??????-???????-?????? ?????-???????.?? -?? ???? --??-??? -?? ???????? ?????? ???????: ???? [??] ****************** *************************************************************************************** ???? ************************************************** ************ & lt; c0043725.itcs.hp.com & gt; ?????????? ?? ??? ?????????? ???????: ????? 22 ?? ??? 20043725.itcs.hp.com ?? & lt; c0043725.itcs.hp.com & gt; REMOTE_MODULE ????? & lt; c0043725.itcs.hp.com & gt; EXEC / bin / sh -c mkdir -p $ HOME / .able / tmp / ansible-tmp-1426531409.47-88648204897709 & amp; amp; Chmod a + rx $ HOME / .able / tmp / ansible-tmp-1426531409.47-88648204897709 & amp; amp; ???? $ HOME / .ansible / tmp / ansible-tmp-1426531409.47-88648204897709 & lt; c0043725.itcs.hp.com & gt; PUT / tmp / tmpNP2qY2 /home/balp/.ansible/tmp/ansible-tmp-1426531409.47-88648204897709/setup ???? ?? & lt; c0043725.itcs.hp.com & gt; EXEC / bin / ? -c LANG = en_US.UTF-8 LC_CTYPE = en_US.UTF-8 / usr / bin / ???? /home/balp/.ansible/tmp/ansible-tmp-1426531409.47-88648204897709/setup; rm- ???? /home/balp/.ansible/tmp/ansible-tmp-1426531409.47-88648204897709/ & gt; / dev / ????? 2 & gt; & amp; 1 ???: [c0043725.itcs.hp.com] ?????: [???????] * ************************************************** ************** & lt; c0043725.itcs.hp.com & gt; ?????????? ?? ??? ?????????? ???????: ????? 22 ?? ??? 20043725.itcs.hp.com ?? & lt; c0043725.itcs.hp.com & gt; REMOTE_MODULE ???? chdir = / ?? / TIBCO pbrun ?? - TIBCO ? test.sh #USE_SHELL & LT; c0043725.itcs.hp.com & gt; EXEC / bin / ? -c mkdir -p $ HOME / .ansible / tmp / ansible-tmp-1426531412.61-87821666758998 & amp; & amp; Chmod a + rx $ HOME / .able / tmp / ansible-tmp-1426531412.61-87821666758998 ?? amp; amp; ???? $ HOME / .ansible / tmp / ansible-tmp-1426531412.61-87821666758998 & lt; c0043725.itcs.hp.com & gt; PUT / tmp / tmpNgfy06 /home/balp/.ansible/tmp/ansible-tmp-1426531412.61-87821666758998/command ???? ?? & lt; c0043725.itcs.hp.com & gt; ??????? / ??? / ?-?? ????-?? ??? ??? amp; Sudo -H -S -p "[sudo, ansible, key = torjbeltprhcmjkqbwcakmroqrxvfiai] ???????:" -u ??? / ??? / ?-?? "??? ????????????- torjbeltprhcmjkqbwcakmroqvfiai; LANG = en_US.UTF-8 LC_CTYPE = en_US.UTF- 8 / usr / bin / ???? /home/balp/.ansible/tmp/ansible-tmp-1426531412.61-87821666758998/command; rm- ???? /home/balp/.ansible/tmp/ansible-tmp-1426531412.61-87821666758998/ & gt; / Dev / null 2 ??& gt; ?? 1 "????: [c0043725.itcs.hp.com] = & gt; {"??? ???": ?? ??, "??????": "????? ?? - ????? ? test.sh", "??????": "0: 00: 00.024 944", "???": "2015-03-16 18: 43: 33.371752" , "????": 127, "???????": "2015-03-16 18: 43: 33.346808", "???????": []} ???????: / ??? / ?: pbrun: ????? ???? ???? ????: ??? ????? ???? ?? ???? ?? ???? ??? - PLAY RECAP ?? ???? ???? ******************************************************************************************* *********************** ???: ?????? ????, ?????: --limit @ / ??? / ????? playbook.retry c0043725.itcs.hp.com: ??? ?? = 1 ??? = 0 ?? ???? ?????? ?? = 0 ??? ???? ??? ?? = 1  

?? ????? ??? ???? ?? ??? ??? ?? ???? ????

????? ??????? ?? ??? ???? ??????? ?? ???????? ?? ????? ???? ?????? ?? ?? ?? ??? ???? ?? ??? ???-??? ?????? ?? ?????? ???? ?? ????? ?? ??? ????

  • ??? ????? ????? pbrun ??? ???? ?? (???? ???? ?? ?? ?? ???? ?????? ???? ?? ??? ????????? / ???? ???? ?????? ?? ???? ??????)
  • ?? ????? ??? ?? ????????? ?? ??? ????
  • ?? sudo: yes < / Code>?
  • (?? ???? ?? ?????? ???? ???? ?? ??? ?? ?? ??????? ?? root ?? ??? ??? ??? ??? ???, ?? ??? ??? ?? ?????? ???? ?? ??? ?? ??? ??? ?????? ???? (?? ?? ?? ?? ??? ???? ??????? ???? ????

??? ???? pbrun ?? sudo > Test.sh ?? ???? ??????? ??? ?? ????? ?? ?? ???? ?? ??? ?? ?? ?????? ?????? ?????

- ??????? ???? -

I ??? ?? ???? ?? ?? ??? ?? abt sudo_exe

??? ????????
  # ?????? sudo ??????????? ?? ??? ???????? ?? sudo_exe = sudo  


go to link download
download
alternative link download

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.