qb 0.3.12 → 0.3.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +3 -1
- data/README.md +42 -26
- data/ansible.cfg +7 -0
- data/doc/common_issues/qb_run/slow_gather_facts.md +51 -0
- data/doc/getting_started.md +84 -0
- data/doc/intro.md +67 -0
- data/doc/notes/2018.01.06.ansible_devel_submodule.md +29 -0
- data/doc/qb_roles.md +155 -0
- data/doc/qb_roles/metadata/default_dir.md +116 -0
- data/exe/qb +16 -14
- data/lib/qb.rb +5 -20
- data/lib/qb/ansible/cmds/playbook.rb +3 -4
- data/lib/qb/ansible/env.rb +22 -2
- data/lib/qb/ansible/env/devel.rb +49 -0
- data/lib/qb/cli.rb +3 -1
- data/lib/qb/cli/help.rb +1 -1
- data/lib/qb/cli/list.rb +47 -0
- data/lib/qb/cli/run.rb +41 -15
- data/lib/qb/cli/setup.rb +35 -2
- data/lib/qb/options.rb +57 -30
- data/lib/qb/role.rb +32 -170
- data/lib/qb/role/default_dir.rb +231 -0
- data/lib/qb/role/errors.rb +18 -10
- data/lib/qb/role/name.rb +139 -0
- data/lib/qb/util/logging.rb +0 -7
- data/lib/qb/version.rb +1 -1
- data/library/stream +5 -0
- data/plugins/filter_plugins/string_plugins.py +2 -3
- data/plugins/filter_plugins/version_plugins.py +11 -0
- data/qb.gemspec +158 -62
- data/roles/nrser.blockinfile/library/blockinfile.py +14 -0
- data/roles/qb.git_repo/tasks/main.yml +3 -3
- data/roles/qb.npm_package/meta/main.yml +2 -2
- data/roles/qb.npm_package/meta/qb.yml +3 -3
- data/roles/qb.vars/meta/qb.yml +8 -7
- data/roles/qb.vars/tasks/main.yml +10 -1
- data/roles/qb/call/defaults/main.yml +2 -0
- data/roles/qb/call/meta/main.yml +8 -0
- data/roles/qb/call/meta/qb.yml +68 -0
- data/roles/qb/call/tasks/main.yml +92 -0
- data/roles/qb/gem/new/meta/qb.yml +1 -1
- data/roles/qb/gem/new/tasks/main.yml +3 -3
- data/roles/qb/gem/release/tasks/main.yml +3 -5
- data/roles/{qb.gitignore → qb/git/ignore}/defaults/main.yml +1 -1
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Actionscript.gitignore +2 -3
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Ada.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Agda.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Android.gitignore +3 -2
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/AppEngine.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/AppceleratorTitanium.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/ArchLinuxPackages.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Autotools.gitignore +9 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/C++.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/C.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/CFWheels.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/CMake.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/CONTRIBUTING.md +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/CUDA.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/CakePHP.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/ChefCookbook.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Clojure.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/CodeIgniter.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/CommonLisp.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Composer.gitignore +1 -1
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Concrete5.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Coq.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/CraftCMS.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/D.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/DM.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Dart.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Delphi.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Drupal.gitignore +3 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/EPiServer.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Eagle.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Elisp.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Elixir.gitignore +2 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Elm.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Erlang.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/ExpressionEngine.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/ExtJs.gitignore +2 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Fancy.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Finale.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/ForceDotCom.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Fortran.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/FuelPHP.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/GWT.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Gcov.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Gem.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/GitBook.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Anjuta.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Ansible.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Archives.gitignore +2 -2
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Bazaar.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/BricxCC.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/CVS.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Calabash.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Cloud9.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/CodeKit.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/DartEditor.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Dreamweaver.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Dropbox.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Eclipse.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/EiffelStudio.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Emacs.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Ensime.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Espresso.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/FlexBuilder.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/GPG.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/JDeveloper.gitignore +0 -0
- data/roles/qb/git/ignore/files/gitignore/Global/JEnv.gitignore +5 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/JetBrains.gitignore +2 -1
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/KDevelop4.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Kate.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Lazarus.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/LibreOffice.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Linux.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/LyX.gitignore +0 -0
- data/roles/qb/git/ignore/files/gitignore/Global/Matlab.gitignore +25 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Mercurial.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/MicrosoftOffice.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/ModelSim.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Momentics.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/MonoDevelop.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/NetBeans.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Ninja.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/NotepadPP.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Otto.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/README.md +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Redcar.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Redis.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/SBT.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/SVN.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/SlickEdit.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Stata.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/SublimeText.gitignore +5 -5
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/SynopsysVCS.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Tags.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/TextMate.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/TortoiseGit.gitignore +0 -0
- data/roles/qb/git/ignore/files/gitignore/Global/Vagrant.gitignore +5 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Vim.gitignore +6 -4
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/VirtualEnv.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/VisualStudioCode.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/WebMethods.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Windows.gitignore +4 -1
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/Xcode.gitignore +9 -9
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/XilinxISE.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Global/macOS.gitignore +2 -1
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Go.gitignore +0 -3
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Gradle.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Grails.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Haskell.gitignore +2 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/IGORPro.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Idris.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Java.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Jboss.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Jekyll.gitignore +1 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Joomla.gitignore +1 -1
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Julia.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/KiCad.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Kohana.gitignore +0 -0
- data/roles/qb/git/ignore/files/gitignore/Kotlin.gitignore +1 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/LICENSE +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/LabVIEW.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Laravel.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Leiningen.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/LemonStand.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Lilypond.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Lithium.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Lua.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Magento.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Maven.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Mercury.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/MetaProgrammingSystem.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Nanoc.gitignore +1 -1
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Nim.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Node.gitignore +1 -1
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/OCaml.gitignore +3 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Objective-C.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Opa.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/OpenCart.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/OracleForms.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Packer.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Perl.gitignore +1 -1
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Phalcon.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/PlayFramework.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Plone.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Prestashop.gitignore +3 -1
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Processing.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/PureScript.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Python.gitignore +11 -5
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/QB.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Qooxdoo.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Qt.gitignore +8 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/R.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/README.md +2 -2
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/ROS.gitignore +2 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Rails.gitignore +4 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/RhodesRhomobile.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Ruby.gitignore +0 -16
- data/roles/qb/git/ignore/files/gitignore/RubyMotion.gitignore +30 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Rust.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/SCons.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Sass.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Scala.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Scheme.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Scrivener.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Sdcc.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/SeamGen.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/SketchUp.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Smalltalk.gitignore +4 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Stella.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/SugarCRM.gitignore +2 -2
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Swift.gitignore +1 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Symfony.gitignore +7 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/SymphonyCMS.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/TeX.gitignore +6 -1
- data/roles/qb/git/ignore/files/gitignore/Terraform.gitignore +9 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Textpattern.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/TurboGears2.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Typo3.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Umbraco.gitignore +7 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Unity.gitignore +7 -6
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/UnrealEngine.gitignore +2 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/VVVV.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/VisualStudio.gitignore +37 -6
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Waf.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/WordPress.gitignore +1 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Xojo.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Yeoman.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Yii.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/ZendFramework.gitignore +0 -1
- data/roles/{qb.gitignore → qb/git/ignore}/files/gitignore/Zephir.gitignore +0 -0
- data/roles/{qb.gitignore → qb/git/ignore}/meta/main.yml +1 -1
- data/roles/{qb.gitignore → qb/git/ignore}/meta/qb +5 -0
- data/roles/{qb.gitignore → qb/git/ignore}/tasks/main.yml +9 -1
- data/roles/qb/github/pages/setup/defaults/main.yml +2 -0
- data/roles/qb/github/pages/setup/meta/main.yml +8 -0
- data/roles/qb/github/pages/setup/meta/qb.yml +68 -0
- data/roles/qb/github/pages/setup/tasks/main.yml +10 -0
- data/roles/{qb.project → qb/project}/.qb-options.yml +1 -1
- data/roles/{qb.project → qb/project}/defaults/main.yml +1 -1
- data/roles/{qb.project → qb/project}/files/ansible.cfg +0 -0
- data/roles/{qb.project → qb/project}/files/hosts +0 -0
- data/roles/qb/project/meta/main.yml +6 -0
- data/roles/{qb.project → qb/project}/meta/qb.yml +4 -2
- data/roles/{qb.project → qb/project}/qb/get_dir +0 -0
- data/roles/qb/project/tasks/dev.yml +53 -0
- data/roles/{qb.project → qb/project}/tasks/main.yml +3 -2
- data/roles/{qb.project → qb/project}/templates/.gitkeep +0 -0
- data/roles/qb/project/templates/README.md.j2 +4 -0
- data/roles/qb/project/templates/setup.qb.yml.j2 +52 -0
- data/roles/{qb.project → qb/project}/templates/setup.yml.j2 +0 -0
- data/roles/{qb.role → qb/role}/.qb-options.yml +0 -0
- data/roles/{qb.role → qb/role}/defaults/main.yml +4 -1
- data/roles/{qb.role → qb/role}/meta/main.yml +1 -1
- data/roles/{qb.role → qb/role}/meta/qb.yml +2 -2
- data/roles/qb/role/qb/meta/main.yml +1 -1
- data/roles/qb/role/qb/meta/qb.yml +1 -1
- data/roles/qb/role/qb/tasks/main.yml +4 -2
- data/roles/qb/role/qb/templates/qb.yml.j2 +1 -1
- data/roles/{qb.role → qb/role}/tasks/main.yml +3 -2
- data/roles/{qb.role → qb/role}/tasks/module.yml +0 -0
- data/roles/{qb.role → qb/role}/tasks/plugins/_filter_plugin.yml +0 -0
- data/roles/{qb.role → qb/role}/tasks/plugins/filter_plugins.yml +5 -5
- data/roles/{qb.role → qb/role}/templates/.gitkeep +0 -0
- data/roles/{qb.role → qb/role}/templates/README.md.j2 +0 -0
- data/roles/{qb.role → qb/role}/templates/defaults/main.yml.j2 +0 -0
- data/roles/{qb.role → qb/role}/templates/filter_plugins/filters.py.j2 +0 -0
- data/roles/{qb.role → qb/role}/templates/handlers/main.yml.j2 +0 -0
- data/roles/{qb.role → qb/role}/templates/library/module.rb.j2 +0 -0
- data/roles/{qb.role → qb/role}/templates/meta/main.yml.j2 +0 -0
- data/roles/{qb.role → qb/role}/templates/tasks/main.yml.j2 +0 -0
- data/roles/{qb.role → qb/role}/templates/vars/main.yml.j2 +0 -0
- data/roles/{qb.role → qb/role}/vars/main.yml +1 -1
- data/roles/qb/ruby/bundler/.qb-options.yml +4 -0
- data/roles/qb/ruby/bundler/defaults/main.yml +7 -0
- data/roles/qb/ruby/bundler/filter_plugins/bundler_filters.py +157 -0
- data/roles/qb/ruby/bundler/meta/main.yml +8 -0
- data/roles/qb/ruby/bundler/meta/qb.yml +69 -0
- data/roles/qb/ruby/bundler/tasks/gems.yml +12 -0
- data/roles/qb/ruby/bundler/tasks/main.yml +12 -0
- data/roles/qb/ruby/bundler/tasks/setup.yml +13 -0
- data/roles/qb/ruby/yard/defaults/args.yml +2 -0
- data/roles/qb/ruby/yard/defaults/main.yml +9 -0
- data/roles/qb/ruby/yard/meta/main.yml +8 -0
- data/roles/qb/ruby/yard/meta/qb.yml +71 -0
- data/roles/qb/ruby/yard/tasks/main.yml +28 -0
- metadata +290 -297
- data/roles/nrser.blockinfile/tests/.gitignore +0 -1
- data/roles/nrser.blockinfile/tests/expected/test-basic/create.txt +0 -5
- data/roles/nrser.blockinfile/tests/expected/test-basic/insert.txt +0 -6
- data/roles/nrser.blockinfile/tests/expected/test-basic/marker.txt +0 -5
- data/roles/nrser.blockinfile/tests/expected/test-basic/remove.txt +0 -2
- data/roles/nrser.blockinfile/tests/expected/test-basic/update.txt +0 -6
- data/roles/nrser.blockinfile/tests/expected/test-block/block.txt +0 -4
- data/roles/nrser.blockinfile/tests/expected/test-block/content.txt +0 -4
- data/roles/nrser.blockinfile/tests/expected/test-follow/link0.txt +0 -6
- data/roles/nrser.blockinfile/tests/expected/test-follow/link1.txt +0 -6
- data/roles/nrser.blockinfile/tests/expected/test-follow/link2.txt +0 -1
- data/roles/nrser.blockinfile/tests/expected/test-follow/real0.txt +0 -2
- data/roles/nrser.blockinfile/tests/expected/test-follow/real1.txt +0 -2
- data/roles/nrser.blockinfile/tests/expected/test-follow/real2.txt +0 -6
- data/roles/nrser.blockinfile/tests/expected/test-insertab/insertafter.txt +0 -8
- data/roles/nrser.blockinfile/tests/expected/test-insertab/insertbefore.txt +0 -8
- data/roles/nrser.blockinfile/tests/expected/test-insertab/insertbof.txt +0 -8
- data/roles/nrser.blockinfile/tests/expected/test-insertab/inserteof.txt +0 -8
- data/roles/nrser.blockinfile/tests/expected/test-insertab/insertunmatched.txt +0 -8
- data/roles/nrser.blockinfile/tests/expected/test-insertab/updateafter.txt +0 -8
- data/roles/nrser.blockinfile/tests/expected/test-insertab/updatebefore.txt +0 -8
- data/roles/nrser.blockinfile/tests/expected/test-multiline/insert.txt +0 -11
- data/roles/nrser.blockinfile/tests/expected/test-multiline/remove.txt +0 -2
- data/roles/nrser.blockinfile/tests/expected/test-multiline/update.txt +0 -12
- data/roles/nrser.blockinfile/tests/expected/test-replace/index.html +0 -6
- data/roles/nrser.blockinfile/tests/expected/test-state/insert-present.txt +0 -5
- data/roles/nrser.blockinfile/tests/expected/test-state/insert.txt +0 -5
- data/roles/nrser.blockinfile/tests/expected/test-state/remove-absent.txt +0 -2
- data/roles/nrser.blockinfile/tests/expected/test-state/remove-present.txt +0 -2
- data/roles/nrser.blockinfile/tests/expected/test-state/remove.txt +0 -2
- data/roles/nrser.blockinfile/tests/fixtures/test-basic/insert.txt +0 -2
- data/roles/nrser.blockinfile/tests/fixtures/test-basic/marker.txt +0 -1
- data/roles/nrser.blockinfile/tests/fixtures/test-basic/remove.txt +0 -6
- data/roles/nrser.blockinfile/tests/fixtures/test-basic/update.txt +0 -6
- data/roles/nrser.blockinfile/tests/fixtures/test-block/block.txt +0 -1
- data/roles/nrser.blockinfile/tests/fixtures/test-block/content.txt +0 -1
- data/roles/nrser.blockinfile/tests/fixtures/test-follow/link0.txt +0 -1
- data/roles/nrser.blockinfile/tests/fixtures/test-follow/link1.txt +0 -1
- data/roles/nrser.blockinfile/tests/fixtures/test-follow/link2.txt +0 -1
- data/roles/nrser.blockinfile/tests/fixtures/test-follow/real0.txt +0 -2
- data/roles/nrser.blockinfile/tests/fixtures/test-follow/real1.txt +0 -2
- data/roles/nrser.blockinfile/tests/fixtures/test-follow/real2.txt +0 -2
- data/roles/nrser.blockinfile/tests/fixtures/test-insertab/insertafter.txt +0 -4
- data/roles/nrser.blockinfile/tests/fixtures/test-insertab/insertbefore.txt +0 -4
- data/roles/nrser.blockinfile/tests/fixtures/test-insertab/insertbof.txt +0 -4
- data/roles/nrser.blockinfile/tests/fixtures/test-insertab/inserteof.txt +0 -4
- data/roles/nrser.blockinfile/tests/fixtures/test-insertab/insertunmatched.txt +0 -4
- data/roles/nrser.blockinfile/tests/fixtures/test-insertab/updateafter.txt +0 -8
- data/roles/nrser.blockinfile/tests/fixtures/test-insertab/updatebefore.txt +0 -8
- data/roles/nrser.blockinfile/tests/fixtures/test-multiline/insert.txt +0 -2
- data/roles/nrser.blockinfile/tests/fixtures/test-multiline/remove.txt +0 -11
- data/roles/nrser.blockinfile/tests/fixtures/test-multiline/update.txt +0 -12
- data/roles/nrser.blockinfile/tests/fixtures/test-replace/index.html +0 -1
- data/roles/nrser.blockinfile/tests/fixtures/test-state/insert-present.txt +0 -2
- data/roles/nrser.blockinfile/tests/fixtures/test-state/insert.txt +0 -2
- data/roles/nrser.blockinfile/tests/fixtures/test-state/remove-absent.txt +0 -6
- data/roles/nrser.blockinfile/tests/fixtures/test-state/remove-present.txt +0 -6
- data/roles/nrser.blockinfile/tests/fixtures/test-state/remove.txt +0 -6
- data/roles/nrser.blockinfile/tests/hosts +0 -1
- data/roles/nrser.blockinfile/tests/roles/yaegashi.blockinfile +0 -1
- data/roles/nrser.blockinfile/tests/run.sh +0 -64
- data/roles/nrser.blockinfile/tests/test-basic.yml +0 -31
- data/roles/nrser.blockinfile/tests/test-block.yml +0 -16
- data/roles/nrser.blockinfile/tests/test-follow.yml +0 -21
- data/roles/nrser.blockinfile/tests/test-insertab.yml +0 -34
- data/roles/nrser.blockinfile/tests/test-multiline.yml +0 -51
- data/roles/nrser.blockinfile/tests/test-replace.yml +0 -21
- data/roles/nrser.blockinfile/tests/test-state.yml +0 -32
- data/roles/qb.gitignore/files/gitignore/Global/Matlab.gitignore +0 -22
- data/roles/qb.gitignore/files/gitignore/Global/Vagrant.gitignore +0 -1
- data/roles/qb.gitignore/files/gitignore/Terraform.gitignore +0 -6
- data/roles/qb.project/meta/main.yml +0 -6
- data/roles/qb.project/tasks/dev.yml +0 -36
- data/roles/qb.project/tasks/setup.yml +0 -42
- data/roles/qb.project/templates/README.md.j2 +0 -2
- data/roles/qb.project/templates/bootstrap.yml.j2 +0 -20
@@ -1,31 +0,0 @@
|
|
1
|
-
- hosts: localhost
|
2
|
-
vars:
|
3
|
-
- testing_dir: "{{playbook_dir}}/testing"
|
4
|
-
roles:
|
5
|
-
- yaegashi.blockinfile
|
6
|
-
tasks:
|
7
|
-
- name: insert block
|
8
|
-
blockinfile: |
|
9
|
-
dest={{testing_dir}}/insert.txt backup=yes
|
10
|
-
content="aaa bbb ccc\nAAA BBB CCC"
|
11
|
-
- name: update block
|
12
|
-
blockinfile: |
|
13
|
-
dest={{testing_dir}}/update.txt backup=yes
|
14
|
-
content="aaa bbb ccc\nAAA BBB CCC"
|
15
|
-
- name: remove block
|
16
|
-
blockinfile: |
|
17
|
-
dest={{testing_dir}}/remove.txt backup=yes
|
18
|
-
content=""
|
19
|
-
- name: alternative marker
|
20
|
-
blockinfile: |
|
21
|
-
dest={{testing_dir}}/marker.txt backup=yes
|
22
|
-
marker="<!-- {mark} ANSIBLE MANAGED BLOCK -->"
|
23
|
-
content="<h2>aaa bbb ccc</h2>\n<h2>AAA BBB CCC</h2>"
|
24
|
-
- name: create a file, with options in a hash
|
25
|
-
blockinfile:
|
26
|
-
dest: "{{testing_dir}}/create.txt"
|
27
|
-
create: yes
|
28
|
-
content: |
|
29
|
-
iface eth0 inet static
|
30
|
-
address 192.168.0.1
|
31
|
-
netmask 255.255.255.0
|
@@ -1,16 +0,0 @@
|
|
1
|
-
- hosts: localhost
|
2
|
-
vars:
|
3
|
-
- testing_dir: "{{playbook_dir}}/testing"
|
4
|
-
roles:
|
5
|
-
- yaegashi.blockinfile
|
6
|
-
tasks:
|
7
|
-
- name: insert a block using block
|
8
|
-
blockinfile:
|
9
|
-
dest: "{{testing_dir}}/block.txt"
|
10
|
-
backup: yes
|
11
|
-
block: aaa bbb ccc
|
12
|
-
- name: insert a block using block
|
13
|
-
blockinfile:
|
14
|
-
dest: "{{testing_dir}}/content.txt"
|
15
|
-
backup: yes
|
16
|
-
content: aaa bbb ccc
|
@@ -1,21 +0,0 @@
|
|
1
|
-
- hosts: localhost
|
2
|
-
vars:
|
3
|
-
- testing_dir: "{{playbook_dir}}/testing"
|
4
|
-
roles:
|
5
|
-
- yaegashi.blockinfile
|
6
|
-
tasks:
|
7
|
-
- shell: echo "Detected Ansible prior to 1.8" > {{testing_dir}}/SKIPPED
|
8
|
-
&& false
|
9
|
-
when: ansible_version is not defined
|
10
|
-
- name: update symlink file without follow
|
11
|
-
blockinfile: |
|
12
|
-
dest={{testing_dir}}/link0.txt backup=yes follow=no
|
13
|
-
content="aaa bbb ccc\nAAA BBB CCC"
|
14
|
-
- name: update symlink file with follow=no
|
15
|
-
blockinfile: |
|
16
|
-
dest={{testing_dir}}/link1.txt backup=yes follow=no
|
17
|
-
content="aaa bbb ccc\nAAA BBB CCC"
|
18
|
-
- name: update symlink file with follow=yes
|
19
|
-
blockinfile: |
|
20
|
-
dest={{testing_dir}}/link2.txt backup=yes follow=yes
|
21
|
-
content="aaa bbb ccc\nAAA BBB CCC"
|
@@ -1,34 +0,0 @@
|
|
1
|
-
- hosts: localhost
|
2
|
-
vars:
|
3
|
-
- testing_dir: "{{playbook_dir}}/testing"
|
4
|
-
roles:
|
5
|
-
- yaegashi.blockinfile
|
6
|
-
tasks:
|
7
|
-
- name: insert block after specific line
|
8
|
-
blockinfile: |
|
9
|
-
dest={{testing_dir}}/insertafter.txt backup=yes
|
10
|
-
content="aaa bbb ccc\nAAA BBB CCC" insertafter=222
|
11
|
-
- name: insert block before specific line
|
12
|
-
blockinfile: |
|
13
|
-
dest={{testing_dir}}/insertbefore.txt backup=yes
|
14
|
-
content="aaa bbb ccc\nAAA BBB CCC" insertbefore=222
|
15
|
-
- name: insert block at EOF
|
16
|
-
blockinfile: |
|
17
|
-
dest={{testing_dir}}/inserteof.txt backup=yes
|
18
|
-
content="aaa bbb ccc\nAAA BBB CCC" insertafter=EOF
|
19
|
-
- name: insert block at BOF
|
20
|
-
blockinfile: |
|
21
|
-
dest={{testing_dir}}/insertbof.txt backup=yes
|
22
|
-
content="aaa bbb ccc\nAAA BBB CCC" insertbefore=BOF
|
23
|
-
- name: insert block with unmatched regexp
|
24
|
-
blockinfile: |
|
25
|
-
dest={{testing_dir}}/insertunmatched.txt backup=yes
|
26
|
-
content="aaa bbb ccc\nAAA BBB CCC" insertafter=999
|
27
|
-
- name: update block with insertafter ignored
|
28
|
-
blockinfile: |
|
29
|
-
dest={{testing_dir}}/updateafter.txt backup=yes
|
30
|
-
content="aaa bbb ccc\nAAA BBB CCC" insertafter=222
|
31
|
-
- name: update block with insertbefore ignored
|
32
|
-
blockinfile: |
|
33
|
-
dest={{testing_dir}}/updatebefore.txt backup=yes
|
34
|
-
content="aaa bbb ccc\nAAA BBB CCC" insertbefore=222
|
@@ -1,51 +0,0 @@
|
|
1
|
-
- hosts: localhost
|
2
|
-
gather_facts: false
|
3
|
-
vars:
|
4
|
-
testing_dir: "{{playbook_dir}}/testing"
|
5
|
-
beginmarker: |
|
6
|
-
|
7
|
-
{{ '#' * 78 }}
|
8
|
-
# BEGIN MULTILINE SECTION
|
9
|
-
#
|
10
|
-
|
11
|
-
endmarker: |
|
12
|
-
#
|
13
|
-
# END MULTILINE SECTION
|
14
|
-
{{ '#' * 78 }}
|
15
|
-
|
16
|
-
blah: null
|
17
|
-
roles:
|
18
|
-
- yaegashi.blockinfile
|
19
|
-
tasks:
|
20
|
-
- name: insert block
|
21
|
-
blockinfile: |
|
22
|
-
dest={{testing_dir}}/insert.txt backup=yes
|
23
|
-
content="aaa bbb ccc\nAAA BBB CCC"
|
24
|
-
beginmarker="{{ beginmarker }}"
|
25
|
-
endmarker="{{ endmarker }}"
|
26
|
-
- name: remove block
|
27
|
-
blockinfile: |
|
28
|
-
dest={{testing_dir}}/remove.txt backup=yes
|
29
|
-
content=""
|
30
|
-
beginmarker="{{ beginmarker }}"
|
31
|
-
endmarker="{{ endmarker }}"
|
32
|
-
- name: update block
|
33
|
-
blockinfile: |
|
34
|
-
dest={{testing_dir}}/update.txt backup=yes
|
35
|
-
content="aaa bbb ccc\nAAA BBB CCC"
|
36
|
-
beginmarker="{{ beginmarker }}"
|
37
|
-
endmarker="{{ endmarker }}"
|
38
|
-
|
39
|
-
# - name: alternative marker
|
40
|
-
# blockinfile: |
|
41
|
-
# dest={{testing_dir}}/marker.txt backup=yes
|
42
|
-
# marker="<!-- {mark} ANSIBLE MANAGED BLOCK -->"
|
43
|
-
# content="<h2>aaa bbb ccc</h2>\n<h2>AAA BBB CCC</h2>"
|
44
|
-
# - name: create a file, with options in a hash
|
45
|
-
# blockinfile:
|
46
|
-
# dest: "{{testing_dir}}/create.txt"
|
47
|
-
# create: yes
|
48
|
-
# content: |
|
49
|
-
# iface eth0 inet static
|
50
|
-
# address 192.168.0.1
|
51
|
-
# netmask 255.255.255.0
|
@@ -1,21 +0,0 @@
|
|
1
|
-
- hosts: localhost
|
2
|
-
vars:
|
3
|
-
- testing_dir: "{{playbook_dir}}/testing"
|
4
|
-
roles:
|
5
|
-
- yaegashi.blockinfile
|
6
|
-
tasks:
|
7
|
-
- name: insert a newline after <body>
|
8
|
-
replace:
|
9
|
-
dest: "{{testing_dir}}/index.html"
|
10
|
-
backup: yes
|
11
|
-
regexp: (?i)(<body>)(?=.)
|
12
|
-
replace: \1\n
|
13
|
-
- name: insert a block after <body>
|
14
|
-
blockinfile:
|
15
|
-
dest: "{{testing_dir}}/index.html"
|
16
|
-
backup: yes
|
17
|
-
marker: "<!-- {mark} ANSIBLE MANAGED BLOCK -->"
|
18
|
-
content: |
|
19
|
-
<h2>aaa bbb ccc</h2>
|
20
|
-
<h2>AAA BBB CCC</h2>
|
21
|
-
insertafter: (?i)<body>
|
@@ -1,32 +0,0 @@
|
|
1
|
-
- hosts: localhost
|
2
|
-
vars:
|
3
|
-
- testing_dir: "{{playbook_dir}}/testing"
|
4
|
-
roles:
|
5
|
-
- yaegashi.blockinfile
|
6
|
-
tasks:
|
7
|
-
- name: insert block without state
|
8
|
-
blockinfile:
|
9
|
-
dest: "{{testing_dir}}/insert.txt"
|
10
|
-
backup: yes
|
11
|
-
block: aaa bbb ccc
|
12
|
-
- name: remove block without state
|
13
|
-
blockinfile:
|
14
|
-
dest: "{{testing_dir}}/remove.txt"
|
15
|
-
backup: yes
|
16
|
-
- name: insert block with state=present
|
17
|
-
blockinfile:
|
18
|
-
dest: "{{testing_dir}}/insert-present.txt"
|
19
|
-
backup: yes
|
20
|
-
block: aaa bbb ccc
|
21
|
-
state: present
|
22
|
-
- name: remove block with state=present
|
23
|
-
blockinfile:
|
24
|
-
dest: "{{testing_dir}}/remove-present.txt"
|
25
|
-
backup: yes
|
26
|
-
state: present
|
27
|
-
- name: remove block with state=absent
|
28
|
-
blockinfile:
|
29
|
-
dest: "{{testing_dir}}/remove-absent.txt"
|
30
|
-
backup: yes
|
31
|
-
block: aaa bbb ccc
|
32
|
-
state: absent
|
@@ -1,22 +0,0 @@
|
|
1
|
-
##---------------------------------------------------
|
2
|
-
## Remove autosaves generated by the Matlab editor
|
3
|
-
## We have git for backups!
|
4
|
-
##---------------------------------------------------
|
5
|
-
|
6
|
-
# Windows default autosave extension
|
7
|
-
*.asv
|
8
|
-
|
9
|
-
# OSX / *nix default autosave extension
|
10
|
-
*.m~
|
11
|
-
|
12
|
-
# Compiled MEX binaries (all platforms)
|
13
|
-
*.mex*
|
14
|
-
|
15
|
-
# Simulink Code Generation
|
16
|
-
slprj/
|
17
|
-
|
18
|
-
# Session info
|
19
|
-
octave-workspace
|
20
|
-
|
21
|
-
# Simulink autosave extension
|
22
|
-
.autosave
|
@@ -1 +0,0 @@
|
|
1
|
-
.vagrant/
|
@@ -1,36 +0,0 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
- set_fact:
|
4
|
-
project_dev_dir: "{{ project_dest }}/dev"
|
5
|
-
|
6
|
-
- set_fact:
|
7
|
-
project_dev_gitignore: "{{ project_dev_dir }}/.gitignore"
|
8
|
-
|
9
|
-
# dev
|
10
|
-
# ====
|
11
|
-
|
12
|
-
- name: create /dev
|
13
|
-
git_mkdir:
|
14
|
-
path: "{{ project_dev_dir }}"
|
15
|
-
|
16
|
-
# dev/bin
|
17
|
-
# ========
|
18
|
-
|
19
|
-
- name: create /dev/bin directory
|
20
|
-
git_mkdir:
|
21
|
-
path: "{{ project_dev_dir }}/bin"
|
22
|
-
when: project_dev_bin
|
23
|
-
|
24
|
-
# scratch
|
25
|
-
# =======
|
26
|
-
|
27
|
-
- name: create scratch directory
|
28
|
-
git_mkdir:
|
29
|
-
path: "{{ project_dev_dir }}/scratch"
|
30
|
-
when: project_scratch
|
31
|
-
|
32
|
-
# setup
|
33
|
-
# =====
|
34
|
-
|
35
|
-
- include: setup.yml
|
36
|
-
when: project_setup
|
@@ -1,42 +0,0 @@
|
|
1
|
-
# setup
|
2
|
-
# =====
|
3
|
-
|
4
|
-
- name: create dev/bootstrap.yml
|
5
|
-
template:
|
6
|
-
src: bootstrap.yml.j2
|
7
|
-
dest: "{{ project_dev_dir }}/bootstrap.yml"
|
8
|
-
force: "{{ project_force }}"
|
9
|
-
|
10
|
-
- name: create dev/setup.yml
|
11
|
-
template:
|
12
|
-
src: setup.yml.j2
|
13
|
-
dest: "{{ project_dev_dir }}/setup.yml"
|
14
|
-
force: "{{ project_force }}"
|
15
|
-
|
16
|
-
- name: create dev/ansible.cfg
|
17
|
-
copy:
|
18
|
-
src: ansible.cfg
|
19
|
-
dest: "{{ project_dev_dir }}/ansible.cfg"
|
20
|
-
force: "{{ project_force }}"
|
21
|
-
|
22
|
-
- name: create dev/hosts
|
23
|
-
copy:
|
24
|
-
src: hosts
|
25
|
-
dest: "{{ project_dev_dir }}/hosts"
|
26
|
-
force: "{{ project_force }}"
|
27
|
-
|
28
|
-
- name: create /dev/.gitignore
|
29
|
-
copy:
|
30
|
-
content: ''
|
31
|
-
dest: "{{ project_dev_gitignore }}"
|
32
|
-
force: "{{ project_force }}"
|
33
|
-
|
34
|
-
- name: ingore setup related stuff
|
35
|
-
lineinfile:
|
36
|
-
line: "{{ item }}"
|
37
|
-
dest: "{{ project_dev_gitignore }}"
|
38
|
-
with_items:
|
39
|
-
- /repos
|
40
|
-
- /ref/tmp
|
41
|
-
- /lib/dev_setup
|
42
|
-
- "*.pyc"
|
@@ -1,20 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- name: bootstrap dev setup for {{ project_owner }}/{{ project_name }}
|
3
|
-
{% raw %}
|
4
|
-
hosts: localhost
|
5
|
-
|
6
|
-
tasks:
|
7
|
-
- name: clone nrser/dev_setup repo
|
8
|
-
git:
|
9
|
-
repo: git@github.com:nrser/dev_setup.git
|
10
|
-
dest: ./lib/dev_setup
|
11
|
-
update: true
|
12
|
-
version: master
|
13
|
-
recursive: true
|
14
|
-
|
15
|
-
- name: checkout master in all dev_setup submodules
|
16
|
-
command: git submodule foreach git checkout master
|
17
|
-
args:
|
18
|
-
chdir: ./lib/dev_setup
|
19
|
-
|
20
|
-
{% endraw %}
|