ansible-ruby 1.0.11 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f2821185d36ff6b090dae91376c115680f58307
4
- data.tar.gz: e6f1197c8df446f39282fb645628a38a090f120e
3
+ metadata.gz: fe5813977f0657b84b35850e1fd7cbb83f29f6db
4
+ data.tar.gz: a9c2ea846968047e38fffd470bd72e40effc4e99
5
5
  SHA512:
6
- metadata.gz: f4bdc8c31b90cdaaaa484600389a32018431415850e381553ceed1c87fe4bf0a682d628d4515ae7d2f6a1e90f2a88e1190fbc0c917a5ec63af27e9cf3ffd112d
7
- data.tar.gz: 4ebdd8973d406a3e149f5be36501b643e3aa297c957c81536617a61fe75b1851b0dbef8294b0d719dfbb499fecdf65d2db5e48d40f4a642793c7a52119753be0
6
+ metadata.gz: 720df2afaf9b399801a169476bdab589a6c3883f7c585395a4cf6a21a05c13a83c417d2f04f3ef288c515adc89b840c879de28c9604bad497a798090d4e9ef89
7
+ data.tar.gz: 066d2503790d407a0745bc344210080cad4d2f6428ba3852624ef6db092cc25fa160267e165c7b39bfecb1011ec22bc2684fb89042f965500120bdb6e5049fe6
@@ -30,6 +30,13 @@ module Ansible
30
30
  @play_args[:roles] = value
31
31
  end
32
32
 
33
+ def role(name,
34
+ tag = nil)
35
+ roles = @play_args[:roles] ||= []
36
+ roles << name unless tag
37
+ roles << { role: name, tag: tag } if tag
38
+ end
39
+
33
40
  def connection(value)
34
41
  @play_args[:connection] = value
35
42
  end
@@ -24,7 +24,6 @@ module Ansible
24
24
  attribute :tasks
25
25
  validates :tasks, type: Tasks
26
26
  attribute :roles
27
- validates :roles, type: TypeGeneric.new(String)
28
27
  attribute :connection
29
28
  validates :connection,
30
29
  allow_nil: true,
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ansible
4
4
  module Ruby
5
- VERSION = '1.0.11'
5
+ VERSION = '1.0.12'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ansible-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brady Wied