Commit Graph

428 Commits (eaef86d22b7dce03834fd32336f9bb0806405323)

Author SHA1 Message Date
Michael DeHaan 92f9f50f1a Merge pull request #6339 from threatgrid/systemd-template-svc-fix
systemd template services must not discard template part
12 years ago
Michael DeHaan 2b2b174fd3 Merge conflict. 12 years ago
Michael DeHaan 8a07d98f4b Merge pull request #6175 from AdmiralNemo/fix-filesystem
filesystem: Ignore blkid cache
12 years ago
Michael DeHaan 8920990d63 Merge pull request #6097 from mattjeffery/bug/modprobe_normalise_name
Normalise the module name when comparing against the module names in /proc/modules
12 years ago
Michael DeHaan 5aef2f0687 Merge pull request #6005 from pgehres/chkconfig
Adding better failure output for chkconfig failures
12 years ago
Cristian Ciupitu 138b45e32f hostname module: don't filter hostnamectl with awk
There's no need to filter hostnamectl's output with awk because its man
page says:

    hostnamectl [OPTIONS...] {COMMAND}

       --static, --transient, --pretty
	   If status is used (or no explicit command is given) and one
	   of those fields is given, hostnamectl will print out just
           this selected hostname.

E.g. hostnamectl --static status => ansible.example.org
12 years ago
Cristian Ciupitu 0749112286 Micro-optimization: replace s.find(x)!=-1 with x in s
timeit shows a speedup of ~3x on Python 2.7.5 x86_64.
It also makes the code a bit shorter.
12 years ago
James Tanner 9d6518de5a Fixes #6482 Check sysctl file path and catch read exceptions 12 years ago
Michael DeHaan 4e8b97ddeb More shell updates 12 years ago
Richard C Isaacson 154f123b7f setup module: Mark unsafe commands as use_unsafe_shell=True. 12 years ago
Ryan e4805fe411 add module param to Network & sub-classes
add module param to Network and sub-classes of Network, so that ansible 1.5.1 changes to LinuxNetwork apply to all Network classes.
12 years ago
Michael DeHaan c8db3c2db9 Revert "Fix issue#6430 by instantiating Network() with expected arguments"
This reverts commit 2a723e908e.
12 years ago
James Laska 2a723e908e Fix issue#6430 by instantiating Network() with expected arguments 12 years ago
Richard C Isaacson a1c87e6deb Fix docstring issue. 12 years ago
Richard Isaacson 6e13c1ebe0 Merge pull request #6406 from risaacson/at_module2
This fixes what was merged in 1.5.0.
12 years ago
James Tanner c73cb77689 Fix name in locale_gen docstring 12 years ago
James Tanner 41b7badb13 Fix snippet imports and version_added in ufw module 12 years ago
James Cammarata 1d6750afec Merge pull request #5518 from pyykkis/ufw
UFW module (another take)
12 years ago
James Tanner 8ffb964f45 Set version_added for locale_gen 12 years ago
James Tanner da95310d86 Rename locale module to locale_gen 12 years ago
James Cammarata 74335b6e59 Merge pull request #5411 from AugustusKling/locale
locale module
12 years ago
Michael DeHaan fd9df5f429 Merge pull request #6372 from mriedelumab/devel
Returning 'NA' when no virtualization found
12 years ago
James Tanner ba0fec4f42 Force command action to not be executed by the shell unless specifically enabled 12 years ago
Matthew Riedel 5875d19f4d Returning 'NA' when no virtualization found 12 years ago
Richard C Isaacson c6fbb0059b Some cleanup. 12 years ago
Jarno Keskikangas 37ef39d0fa Recognize rule changes even if ufw is in disabled state.
See http://askubuntu.com/questions/30781/see-configured-rules-even-when-inactive
for the details.
12 years ago
Jarno Keskikangas 4d5340587e Insert rule to a specific num. 12 years ago
Jarno Keskikangas 0247708199 Fix typo: 'reseted' -> 'reset'. 12 years ago
Jarno Keskikangas 2613e6fb14 Add protocol options 'esp' and 'ah'. 12 years ago
Jarno Keskikangas f4e8a86c87 Add functionality and reduce complexity.
* Separate 'state', 'policy' and 'rule' commands
* Support for 'logging' command
* Support for 'direction' and 'interface' attributes
* Reliable change notifications based on 'ufw status verbose' diff
* Update documentation
* Cleanup
12 years ago
Aleksey Ovcharenko 651c04a3ec New module [ufw]: this module handles Ubuntu UFW operations
* Updated documentation related to IPv6 usage.

BugFixes:
* Solved the default_policy and state mutual exclusive status.
* Fixed changed status for IPv6 addresses.

Added @otnateos patch.
12 years ago
Richard C Isaacson aba86e3657 Cleaning up pep8 alerts. 12 years ago
Richard C Isaacson f3c1177265 Documentation cleanup. 12 years ago
Richard C Isaacson 7686204b43 Refactored a few things to be more inline with the Ansible way. Passing testing. 12 years ago
Charles Duffy 44ebd3f4f3 systemd template services must not discard template part 12 years ago
jctanner 6a615f18c5 Merge pull request #5872 from tomdymond/add-ignoreerror-to-sysctl
Add option to enable the sysctl -e option
12 years ago
anatoly techtonik a48f0da9d8 setup: Fix KeyError: 'ipv4_secondaries' (issue #6274) 12 years ago
James Tanner 39e368b713 Fix debconf docstring indentation 12 years ago
James Tanner ff1ae57fbf Merge branch 'debconf' of git://github.com/bcoca/ansible into bcoca-debconf 12 years ago
Brian Coca 400a1aa49a didnt make 1.5 ... lets see 12 years ago
Brian Coca 68510ecda8 added better gentoo/funtoo support 12 years ago
Michael DeHaan 9d3a344c06 Merge pull request #6223 from lvh/patch-2
Support ssh-ed25519 keys
12 years ago
Laurens Van Houtven 80e2c597a8 Support ssh-ed25519 keys
The newest version of OpenSSH supports a new, wonderful key type. authorized_key incorrectly discards pubkeys of this type as busted because it doesn't recognize type signature.
12 years ago
James Cammarata 57486b268a Use the no-user-groups option (-N) for useradd in the user module
If no group was specified, but a group by the same name as the user
exists, an error was raised in the situation where USERGROUPS_ENAB is
enabled in /etc/login.defs (which is the case for almost every major
linux distro). In this case, the user will be put in group 100 (which
is usually the "users" group on those same distros). This is currently
only done in the base class, as the issue may not exist on other
platforms like AIX or the BSDs.

Fixes #6210
12 years ago
Dustin C. Hatch 467914e3c3 filesystem: Ignore blkid cache
Sometimes, `blkid` will incorrectly return no information about a block
device, even if it exists and has a valid filesystem. This causes the
*filesystem* module to fail if *force=no*. Instructing `blkid` to use
`/dev/null` as a cache file will force it to rescan the block device on
each run, making results more consistent.

Signed-off-by: Dustin C. Hatch <admiralnemo@gmail.com>
12 years ago
Chris Church 1d6bdd451b Fix setup module to gather facts from PowerPC Macs. 12 years ago
James Cammarata 6fe369fca0 Merge branch 'usermod_fix' of https://github.com/tknguyen79/ansible into tknguyen79-usermod_fix
Conflicts:
	library/system/user
12 years ago
Stefan J. Betz 789ae4697c Require force for LVM shrink and remove operations in lvol. Fixes #5774
Conflicts:
	library/system/lvol
12 years ago
Richard C Isaacson bf30707670 If you try to resize a lvol to the current size return a changed=False and don't fail.
This addresses GH-5165 and adds the ability to check if a lvol exists.

The tests for this don't fit nicely into the current integration tests so they are below.

```
---

- name: remove any existing lv=one of vg=main
  lvol: lv=one vg=main state=absent

- name: remove any existing lv=two of vg=main
  lvol: lv=two vg=main state=absent

- name: check to see if lv=one of vg=main exists
  lvol: lv=one vg=main state=present
  ignore_errors: true
  register: lvol_result0

- name: Assert that we will get a "No size given."
  assert:
    that:
      - "'No size given.' in lvol_result0.msg"

- name: create lv=one of vg=main sized 30g
  lvol: lv=one size=30g vg=main state=present
  register: lvol_result1

- name: Assert that we made changes."
  assert:
    that:
      - "lvol_result1.changed == True"

- name: check to see if lv=one of vg=main exists
  lvol: lv=one vg=main state=present
  register: lvol_result2

- name: Assert that we did not make changes."
  assert:
    that:
      - "lvol_result2.changed == False"

- name: remove lv=one of vg=main
  lvol: lv=one vg=main state=absent

- name: create lv=two of vg=main sized 30G
  lvol: lv=two size=30G vg=main state=present
  register: lvol_result3

- name: Assert that we made changes."
  assert:
    that:
      - "lvol_result3.changed == True"

- name: reduce lv=two of vg=main to 15G
  lvol: lv=two size=15G vg=main state=present
  register: lvol_result4

- name: Assert that we made changes."
  assert:
    that:
      - "lvol_result4.changed == True"

- name: increase lv=two of vg=main to 30G
  lvol: lv=two size=30G vg=main state=present
  register: lvol_result5

- name: Assert that we made changes."
  assert:
    that:
      - "lvol_result5.changed == True"

- name: create lv=two of vg=main sized 30G when already exists at 30G
  lvol: lv=two size=30g vg=main state=present
  register: lvol_result6

- name: Assert that we did not make changes."
  assert:
    that:
      - "lvol_result6.changed == False"

- name: remove lv=two of vg=main
  lvol: lv=two vg=main state=absent
```
12 years ago
Matt Jeffery 8131feaade Normalise the module name when comparing against the module names in /proc/modules. 12 years ago