Skip to content
Permalink
Branch: devel
Commits on May 25, 2015
  1. Remove duplicate RETRY_FILES_* constants

    mmoya committed May 25, 2015
Commits on Oct 22, 2014
  1. Configure retry file usage and location

    mmoya committed Jan 6, 2014
    Adds new settings for managing retry files:
    * retry_files_enabled, defaults to True
    * retry_files_save_path, defaults to ~/.ansible-retry
    
    This change was adapted from PR #5515.
Commits on May 7, 2014
  1. Fix typo

    mmoya committed May 7, 2014
Commits on Mar 21, 2014
Commits on Mar 20, 2014
  1. ec2_group: Request a fresh group object after creation

    mmoya committed Mar 20, 2014
    When a group is created, an egress_rule ALLOW ALL to 0.0.0.0/0 is added
    automatically but it's not reflected in the object returned by the AWS API
    call. After creation we re-read the group for getting an updated object.
  2. ec2_group: Auto create missing groups referenced in rules

    mmoya committed Mar 20, 2014
    Suppose a pair of groups, A and B, depending on each other. One solution
    for breaking the circular dependency at playbook level:
    
        - declare group A without dependencies
        - declare group B depending on A
        - declare group A depending on B
    
    This patch breaks the dependency at module level. Whenever a depended-on
    group is missing it's first created. This approach requires only two tasks:
    
        - declare group A depending on B (group B will be auto created)
        - declare group B depending on A
    
    When creating a group EC2 requires you to pass the group description. In
    order to fullfil this, rules now accept the `group_desc` param. Note
    that group description can't be changed once the group is created so
    it's nice to keep descriptions in sync.
    
    Concrete example:
    
    - ec2_group:
        name: mysql-client
        description: MySQL Client
        rules_egress:
          - proto: tcp
            from_port: 3306
            to_port: 3306
            group_name: mysql-server
            group_desc: MySQL Server
    
    - ec2_group:
        name: mysql-server
        description: MySQL Server
        rules:
          - proto: tcp
            from_port: 3306
            to_port: 3306
            group_name: mysql-client
Commits on Feb 17, 2014
  1. Filter name is singular

    mmoya committed Feb 17, 2014
Commits on Feb 12, 2014
  1. Add support for string values

    mmoya committed Oct 18, 2013
    The SET GLOBAL statement requires properly quoting of values. For example, the
    following correct queries will fail if quotes are toggled:
    
    mysql> SET GLOBAL innodb_lru_scan_depth = 2000;
    mysql> SET GLOBAL master_info_repository = "TABLE";
    
    `mysql_variable` module doesn't quote the value argument, therefore
    string values will fail.
    
      # this task will pass, 2000 is passed without quotes
      - name: set a numeric value
        mysql_variable: variable=innodb_lru_scan_depth value=2000
    
      # this task will fail, TABLE is passed without quotes
      - name: set a string value
        mysql_variable: variable=master_info_repository value=TABLE
    
    With this patch prepared statements are used. Proper quoting will be
    done automatically based on the type of the variables thus an attempt
    to convert to int, then to float is done in first place.
    
    Booleans values, ie: ON, OFF, are not specially handled because they
    can be quoted. For example, the following queries are correct and
    equivalent, they all set _innodb_file_per_table_ to logical _True_:
    
    mysql> SET GLOBAL innodb_file_per_table = "ON";
    mysql> SET GLOBAL innodb_file_per_table = ON;
    mysql> SET GLOBAL innodb_file_per_table = 1;
    
    Tested in mysql 5.5 and 5.6.
Commits on Feb 11, 2014
  1. Fix documentation url

    mmoya committed Feb 11, 2014
  2. Minor grammar fix in manpages

    mmoya committed Feb 11, 2014
Commits on Dec 26, 2013
Commits on Dec 8, 2013
  1. Fix link to playbooks loops

    mmoya committed Dec 8, 2013
Commits on Dec 3, 2013
Commits on Oct 22, 2013
Commits on Mar 6, 2013
  1. Fix copyright

    mmoya committed Mar 6, 2013
Commits on Mar 4, 2013
Commits on Feb 20, 2013
  1. Add support for running modules chrooted in a local dir

    mmoya committed Feb 17, 2013
    Adds 'chroot' connection for executing modules chrooted to
    a local dir. Requires running ansible as root.
    
    chroot dirs should be specified in the inventory like any
    other host.
    
    You can do things like:
    
    $ sudo -E ansible -vvv -f 1 "./chroot1,./chroot2" -c chroot \
      all -m setup
    $ sudo -E ansible-playbook -vvv -f 1 -i "./chroot1,./chroot2" \
      -c chroot some-playbook.yml
    
    some-playbook.yml:
    ---
    - hosts: all
      tasks:
        - name: echo something
          shell: echo "Yaaay!" >/tmp/foobar.txt
        - name: install less
          apt: pkg=less state=latest
  2. Prevent traceback when /etc/mtab is not available

    mmoya committed Feb 13, 2013
    * get_file_contents returns None when file is not available.
      When /etc/mtab is pointing to /proc/mounts and /proc is not
      mounted, mtab.split will traceback.
You can’t perform that action at this time.