Commit Graph

9990 Commits (b489fbfbf630a50c7ec239b4a4117538c4bc66ea)
 

Author SHA1 Message Date
Richard Isaacson e798b558aa Merge pull request #6221 from risaacson/pull_6176
stat module: mode is now returned as an octal and md5 call can be skipped.
11 years ago
Richard C Isaacson f17e549ff9 Typo fix. 11 years ago
Richard C Isaacson 809b714bfc Replace mode with octal renaming to mode.
Closes GH-6176

This way for mode we return in an octal format which is immediately usable compared to transforming it later.
11 years ago
Richard Isaacson cca7fd3c0c Merge pull request #1 from bcoca/stat_updaates
added octal representation of mode and made md5 checksumming optional
11 years ago
Andy Trevorah 1280269866 apt_repository: autoinstall python-apt if not available 11 years ago
Richard Isaacson 44da82c90f Merge pull request #6218 from risaacson/issues_6194
Copy Module: Add the ability to set directory attributes on recursive copy.
11 years ago
Richard C Isaacson 7b6c7366d1 Minor cleanup. 11 years ago
Richard C Isaacson 890202e4c0 copy module: cleanup and if directory_mode not set default to umask 11 years ago
James Tanner 9103bd92e2 Add note about ansible-vault to the changelog 11 years ago
James Tanner 960babd17d Add changelog note for docker-py 0.3.0 11 years ago
James Tanner 6cb21bac5f Update changelog for new yum module behavior 11 years ago
jctanner 42a2586dfa Merge pull request #6171 from joshuaconner/update_to_docker-py_0.3.0
docker: update to docker-py 0.3.0, plus full port binding support etc. from #5639
11 years ago
Richard C Isaacson cf4a6b39cc Copy Module: Add the ability to set directory attributes on recursive copy.
Closes GH-6194.

These changes pass attribute modifications through to new directories during a recursive copy with an addition allowing for the directory mode to be set independantly.
11 years ago
Ashok Raja R cb3c6417dd pause plugin doesn't flush raw_input prompt
##### Issue Type:

Bugfix Pull Request

##### Ansible Version:

ansible 1.4.3

##### Environment:

N/A

##### Summary:

We are using a wrapper python script to run ansible-playbook. We use subprocess to execute and print the stdout as and when its written. Problem is when we use pause it doesn't display the prompt string as raw_input does not flush stdout before reading from stdin.

It looks like a dirty fix to add "\n" to the prompt string but i don't see any other way to over come this. If anyone else have a better fix please do propose/suggest.

##### Steps To Reproduce:

```yaml
#File: test_play.yml
- name: Test
  hosts: $nodes
  gather_facts: false

  tasks:
    - name: Waiting for User
      local_action: pause prompt="Do you want to continue (yes/no)? "
```

```python
#!/usr/bin/env python
#File: test.py
import shlex, subprocess

def run_process(process):
    process = process.encode("utf-8")
    command = shlex.split(process)
    p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
    for line in iter(p.stdout.readline, b''):
        print line,

cmd = "/usr/bin/python -u /usr/bin/ansible-playbook -i hosts.txt test_play.yml -e 'nodes=local'"
run_process(cmd)
```

```
shell $ python test.py
```

##### Expected Results:
```
PLAY [Test] *******************************************************************

TASK: [Waiting for User] ******************************************************
[localhost]
Do you want to continue (yes/no)? :
```

##### Actual Results:
```
PLAY [Test] *******************************************************************

TASK: [Waiting for User] ******************************************************
[localhost]
```
11 years ago
Michael DeHaan f95786b52d Merge pull request #6208 from jctanner/yum-rhn-fix
Fixes #6205 Add install_repoquery parameter to the yum module
11 years ago
Michael DeHaan 9a3891b65c Add vault documentation. 11 years ago
Michael DeHaan 1a6db5449a Document vault and make some cross-references in places where people should read about vault. 11 years ago
Michael DeHaan 5cae9807d9 Trim pipelining docs a bit. 11 years ago
James Cammarata df9de6ea71 Expand the source path in the action plugin when not using a remote source
Fixes #6209
11 years ago
James Tanner aeccbeeed2 add failsafe comment for install_repoquery 11 years ago
James Tanner 122a7021bc remove install_repoquery docstring 11 years ago
James Tanner 3f43fa529d Install yum-utils by default 11 years ago
James Tanner 58c78539bb Fix typo 11 years ago
James Tanner da210522f3 Fix up docstring type and extra info about list 11 years ago
James Tanner 79fb252dc9 Update docstring for rhn details 11 years ago
James Tanner f89e5315af Add install_repoquery parameter to the yum module 11 years ago
Serge van Ginderachter 9833263417 Fixes templating of ansible_ssh_host for delegates 11 years ago
James Cammarata c11e2100e0 Save the original transport in runner after detecting the smart transport
Fixes #6192
11 years ago
Michael DeHaan 956eb91de0 Merge pull request #6198 from jlaska/integration_ec2
First pass at ec2 module tests
11 years ago
Michael DeHaan 829f959dce Merge pull request #6201 from cchurch/devel
Escape subversion parameters for running svn commands
11 years ago
Michael DeHaan cd7d7eb1bc Merge pull request #6202 from muffl0n/unarchive_destdir
unarchive: output dest in error-message
11 years ago
Richard Isaacson 73fa767a6b Added instance_tenancy functionality per social request. 11 years ago
Gareth Armstrong 02477eef69 Fix issue 5621, rpm_key doesn't work for el5 11 years ago
muffl0n 17946b23d5 output dest in error-message 11 years ago
Chris Church adeea2c3f3 Added integration test for subversion parameters that need escaping. 11 years ago
Chris Church 5c2c29e71f Pass svn arguments as a list of strings instead of using string substition to ensure all parameters are escaped properly. 11 years ago
Richard Isaacson ccb64e6358 Merge pull request #6199 from risaacson/issues_5773
column must always be less than len(probline)
11 years ago
Richard C Isaacson 9c8bbe2904 column must always be less than len(probline)
Fixes related to GH-5773.
11 years ago
James Laska b589bf1d2e First pass at ec2 module tests 11 years ago
James Cammarata 14ba10393b Minor tweak to region config in boto configuration file 11 years ago
James Cammarata 88acb48e61 Merge branch 'ec2_boto_config_region' of https://github.com/willthames/ansible into willthames-ec2_boto_config_region 11 years ago
James Cammarata 2a383786dd And remove the expanduser calls from the action_plugin 11 years ago
James Cammarata 32a2636dc7 Add expanduser calls on src/dest in the module too 11 years ago
Richard Isaacson 21b2f3395a Merge pull request #6197 from risaacson/issues_5116
When looking for double colon len(line) must be longer then 1.
11 years ago
James Cammarata 3274785350 Merge pull request #5689 from pgehres/devel
Adding the region to the output of the ec2 module's creation of a new in...
11 years ago
Pavel Antonov 21a7bace77 Support docker_py >= 0.3.0, Docker API >= 1.8, extended error reporting 11 years ago
Richard C Isaacson 585766201d When looking for double colon len(line) is longer then 1.
Addresses GH-5116.

It comes up that when parsing json that if you are missing the last double quote on the last variable and the next line is just '}' we will get an out of range error. In this instance we will also then make sure that the line is long enough to have two colons.
11 years ago
James Cammarata bb5da4c5f6 Merge branch 'devel' of https://github.com/josephtate/ansible into josephtate-devel
Conflicts:
	library/cloud/ec2
11 years ago
James Tanner e3672dded0 Remove breakpoint 11 years ago
James Tanner b74105c689 Add --vault-password-file to bin/ansible-pull 11 years ago