ansible_spec 0.2.21 → 0.2.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3d4a63863f70b35d86dbe14795dc9ff5446621c
4
- data.tar.gz: 0608e049cd384030b7683de980e6e3068e9dfeb3
3
+ metadata.gz: 3c7c2e8e332c8081556cb66d7f6fbdd97fe61248
4
+ data.tar.gz: a8350998cdbf812f4b148ff45fd4904e1c56354f
5
5
  SHA512:
6
- metadata.gz: 5b9c770614a0b3706255317d2fa16a41465a9fbc6bef6ccdfe4bc66491c2abb417ebd448f94016e5c1c9a417e67e4fa75222f001563c4ce84ae83c6e998704e7
7
- data.tar.gz: 24d9cb2c925e0be058a92a0d6269a03fc1fdba859fd959730b4c911587ff14678fe54f055d996b3d672bd726b42958a4642f731955197422eeaeb09aa82eb0d9
6
+ metadata.gz: ffc9bc8b58c2adb1a335e21ec9454d92706ae8c74b9db3b99cce12a52b6aa79f9cf8600cb0f6496b5a68f17fd2278dd8183424b317448c14bade7faf9aab3074
7
+ data.tar.gz: 8766b40e4bfb60f1d5c3b61f0f78ed34b3d29d023622bd530f3d1f386e1d3ae193c52205c04b96575e1355f67176452b2024a942362e27f040e576076f4f73bb
@@ -1,3 +1,6 @@
1
+ # v0.2.22
2
+ - Merge [#111 fix sudo directive for after Ansible 1.9](https://github.com/volanja/ansible_spec/pull/111) by [katsuhisa91](https://github.com/katsuhisa91)
3
+
1
4
  # v0.2.21
2
5
  - Merge [#103 Parse the full included playbook](https://github.com/volanja/ansible_spec/pull/103) by [agx](https://github.com/agx)
3
6
 
@@ -1,3 +1,3 @@
1
1
  module AnsibleSpec
2
- VERSION = "0.2.21"
2
+ VERSION = "0.2.22"
3
3
  end
@@ -23,15 +23,15 @@ when 'ssh'
23
23
  #
24
24
  set :backend, :ssh
25
25
 
26
- if ENV['ASK_SUDO_PASSWORD']
26
+ if ENV['ASK_BECOME_PASSWORD']
27
27
  begin
28
28
  require 'highline/import'
29
29
  rescue LoadError
30
30
  fail "highline is not available. Try installing it."
31
31
  end
32
- set :sudo_password, ask("Enter sudo password: ") { |q| q.echo = false }
32
+ set :become_password, ask("Enter become password: ") { |q| q.echo = false }
33
33
  else
34
- set :sudo_password, ENV['SUDO_PASSWORD']
34
+ set :become_password, ENV['BECOME_PASSWORD']
35
35
  end
36
36
 
37
37
  unless ssh_config_file
@@ -47,8 +47,8 @@ when 'ssh'
47
47
  set :host, options[:host_name] || host
48
48
  set :ssh_options, options
49
49
 
50
- # Disable sudo
51
- # set :disable_sudo, true
50
+ # Disable become
51
+ # set :become, false
52
52
 
53
53
 
54
54
  # Set environment variables
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ansible_spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.21
4
+ version: 0.2.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - volanja
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-14 00:00:00.000000000 Z
11
+ date: 2018-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler