Giter VIP home page Giter VIP logo

ansible-quickref's Issues

Ansible copy content to dest is pasted in scrambled manner

I use Ansible version ansible 1.9.4 , use below code to copy the content in the variable to a file

but it is pasted in different manner from version ansible 2.0.0.2

Code:

  tasks:

  - name: "Logs"
    sudo: false
    local_action: copy content="{{ log }}" dest="/Temp/Ansiblelog"

Ansiblelog I get in 1.9.4

{u'changed': True, u'end': u'2016-03-08 20:23:43.298570', u'stdout': u'

========= Validating Autosys ====== 
Autosys installation files exists under /ngs/lpp/autosys/autouser.P11/
-rw-r--r-- 1 autosys autosys 3210 Feb 12 05:01 /ngs/lpp/autosys/autouser.P11/autosys.bash.local

autoping -m local



CAUAJM_I_50023 AutoPinging Machine local
CAUAJM_E_10212 Machine local is not defined in the database.', u'cmd': u'cat log', u'rc': 0, u'start': u'2016-03-08 20:23:43.280999', u'stderr': u'', u'delta': u'0:00:00.017571', 'invocation': {'module_name': u'shell', 'module_complex_args': {}, 'module_args': u'cat  u'========= Validating Autosys ====== ', u'Autosys , u'', u'autoping -m log', u'', u'', u'', u'CAUAJM_I_50023 AutoPinging Machine local  ', u'CAUAJM_E_10212 Machine local is not defined in the database.'], u'warnings': []}

but in 2.0.0.2 version

It is only pasting

, u'cmd': u'cat log', u'rc': 0, u'start': u'2016-03-08 20:23:43.280999', u'stderr': u'', u'delta': u'0:00:00.017571', 'invocation': {'module_name': u'shell', 'module_complex_args': {}, 'module_args': u'cat  u'========= Validating Autosys ====== ', u'Autosys , u'', u'autoping -mlog', u'', u'', u'', u'CAUAJM_I_50023 AutoPinging Machine local  ', u'CAUAJM_E_10212 Machine local is not defined in the database.'], u'warnings': []}

Could you please let me know what need to be done

Thanks

Submit as a PR to /ansible

This is a great guide, thanks for sharing! If I might suggest: I think this guide would be better suited in the core Ansible documentation so that it can be useful for the Ansible community at large. Ansible's docs are on Github so I would imagine it should be as easy and shooting this over as an issue and/or pull request.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.