ansible-powerplay 1.0.5 → 1.0.7
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 +4 -4
- data/.semver +1 -1
- data/RELEASE_NOTES.org +3 -0
- data/ansible-powerplay.gemspec +2 -2
- data/lib/ansible-powerplay/cli.rb +3 -1
- data/lib/ansible-powerplay/powerplay.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 53c2edf34a642e1f919c710fcee362a9c03d65cc
|
|
4
|
+
data.tar.gz: a29c4616265896cd1b677e798c9f988d2c302b8b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 778c59455468f67cc12047ff6af0e4dfc5132af374132474bb16decc65343922257f57da8d9a753cdb93941f11bff37b6a8ff0a8d2784f0b21001a142ef08019
|
|
7
|
+
data.tar.gz: a7f27850c6a195b24d365c8a5e48e19af99d995f4d9e3f33d46ecf186a258feacaa392aaa3f03e2308ee22cfe8927feb0de4d2880c40a760117ca8360ca3ad68
|
data/.semver
CHANGED
data/RELEASE_NOTES.org
CHANGED
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
** Release Notes
|
|
10
10
|
| Release | Feature / Bug | Description | Date |
|
|
11
11
|
|---------+----------------------------------------+-----------------------------------------------------------------------------------------------+------------|
|
|
12
|
+
| v1.0.7 | Verosity Switch --apverbose=n (-Vn) | Pass to ansible-powerplay -v, -vv, etc. | |
|
|
13
|
+
| v1.0.6 | Ansible Verbosity | Pass to Ansi | |
|
|
14
|
+
| v1.0.5 | Many bug fixes | Critical bugs all fixed. | |
|
|
12
15
|
| v1.0.3 | DSL book | changed the named paramer back to the normal one. | 2061-06-08 |
|
|
13
16
|
| v1.0.0 | version | Prints version | 2061-06-04 |
|
|
14
17
|
| | powerplay / pp shorthand command | Play task defaults if you use the shorthand 'pp' on the commandline | 2061-06-04 |
|
data/ansible-powerplay.gemspec
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: ansible-powerplay 1.0.
|
|
5
|
+
# stub: ansible-powerplay 1.0.7 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "ansible-powerplay"
|
|
9
|
-
s.version = "1.0.
|
|
9
|
+
s.version = "1.0.7"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|
|
@@ -6,7 +6,7 @@ include Powerplay::DSL
|
|
|
6
6
|
module Powerplay
|
|
7
7
|
module Cli
|
|
8
8
|
class Main < Thor
|
|
9
|
-
class_option :verbose, type: :numeric, banner: '[1|2|3]', aliases: '-v', default: 0
|
|
9
|
+
class_option :verbose, type: :numeric, banner: '[1|2|3|4]', aliases: '-v', default: 0
|
|
10
10
|
|
|
11
11
|
desc 'play [script]', 'Run the powerplay script.'
|
|
12
12
|
long_desc <<-LONGDESC
|
|
@@ -35,6 +35,8 @@ module Powerplay
|
|
|
35
35
|
option :sktags, type: :array, aliases: ['--skip-tags', '-T'],
|
|
36
36
|
banner: %(<TAG1>[ TAG2 TAG3...]),
|
|
37
37
|
desc: "Ansible tags to skip - mutually exclusive with --tags"
|
|
38
|
+
option :apverbose, type: :numeric, banner: '[1|2|3|4]', aliases: '-V', default: 0,
|
|
39
|
+
desc: "Pass to ansible-playbook -v, -vv, etc. verbosity flags"
|
|
38
40
|
def play(script = 'stack.play')
|
|
39
41
|
DSL::_global[:options] = massage options
|
|
40
42
|
puts "script %s " % [script] if DSL::_global[:options][:verbose] >= 1
|
|
@@ -84,6 +84,9 @@ module Powerplay
|
|
|
84
84
|
tags = Play::clopts[:tags]
|
|
85
85
|
sktags = Play::clopts[:sktags]
|
|
86
86
|
tmuxout = Play::clopts[:tmux]
|
|
87
|
+
apverb = Play::clopts[:apverbose]
|
|
88
|
+
|
|
89
|
+
verb = (apverb == 0) ? '' : ('-' + ('v' * apverb))
|
|
87
90
|
tagstr = ''
|
|
88
91
|
if tags and sktags
|
|
89
92
|
puts "Cannot use both --tags (#{tags}) and --skip-tags (#{sktags})"
|
|
@@ -104,7 +107,7 @@ module Powerplay
|
|
|
104
107
|
end
|
|
105
108
|
xxv = [extra[book.type], extra[:all]].compact.join(' ')
|
|
106
109
|
redirect = (tmuxout.nil?) ? '' : " > #{tty}"
|
|
107
|
-
apcmd = %|#{PLAYBOOK} #{OPTS} #{inv} #{book.config[:playbook_directory].first}/#{book.yaml} #{tagstr} --extra-vars "#{book.aparams} #{xxv}" #{redirect}|
|
|
110
|
+
apcmd = %|#{PLAYBOOK} #{OPTS} #{inv} #{book.config[:playbook_directory].first}/#{book.yaml} #{tagstr} --extra-vars "#{book.aparams} #{xxv}" #{verb} #{redirect}|
|
|
108
111
|
unless DSL::_verbosity < 1
|
|
109
112
|
puts "==============================".green
|
|
110
113
|
puts "Running #{book.plan} book ".light_yellow +
|