taperole 1.3.6 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +11 -12
  4. data/lib/tape/ansible_runner.rb +1 -1
  5. data/lib/tape/installer.rb +0 -8
  6. data/lib/tape.rb +2 -2
  7. data/requirements.yml +5 -5
  8. data/roles/backend_install_essentials/meta/main.yml +2 -2
  9. data/roles/frontend_install_essentials/meta/main.yml +1 -1
  10. data/roles/frontend_install_essentials/tasks/main.yml +6 -2
  11. data/roles/node/tasks/main.yml +35 -0
  12. data/roles/node/templates/nvm.sh +5 -0
  13. data/taperole.gemspec +1 -1
  14. data/vars/defaults.yml +3 -2
  15. data/vendor/ANXS.postgresql/.travis.yml +25 -10
  16. data/vendor/ANXS.postgresql/README.md +29 -5
  17. data/vendor/ANXS.postgresql/Vagrantfile +14 -6
  18. data/vendor/ANXS.postgresql/ansible.cfg +2 -0
  19. data/vendor/ANXS.postgresql/defaults/main.yml +49 -25
  20. data/vendor/ANXS.postgresql/handlers/main.yml +1 -1
  21. data/vendor/ANXS.postgresql/meta/.galaxy_install_info +1 -1
  22. data/vendor/ANXS.postgresql/meta/main.yml +1 -1
  23. data/vendor/ANXS.postgresql/tasks/configure.yml +76 -10
  24. data/vendor/ANXS.postgresql/tasks/databases.yml +21 -11
  25. data/vendor/ANXS.postgresql/tasks/extensions/contrib.yml +9 -1
  26. data/vendor/ANXS.postgresql/tasks/install.yml +2 -2
  27. data/vendor/ANXS.postgresql/tasks/install_yum.yml +36 -0
  28. data/vendor/ANXS.postgresql/tasks/main.yml +11 -0
  29. data/vendor/ANXS.postgresql/tasks/users.yml +2 -1
  30. data/vendor/ANXS.postgresql/templates/HOWTO.postgresql.conf +21 -0
  31. data/vendor/ANXS.postgresql/templates/etc_systemd_system_postgresql.service.d_custom.conf.j2 +11 -0
  32. data/vendor/ANXS.postgresql/templates/pg_hba.conf.j2 +4 -0
  33. data/vendor/ANXS.postgresql/templates/postgresql.conf-9.1.j2 +561 -0
  34. data/vendor/ANXS.postgresql/templates/postgresql.conf-9.2.j2 +578 -0
  35. data/vendor/ANXS.postgresql/templates/postgresql.conf-9.3.j2 +4 -0
  36. data/vendor/ANXS.postgresql/templates/postgresql.conf-9.4.j2 +4 -0
  37. data/vendor/ANXS.postgresql/templates/postgresql.conf-9.5.j2 +622 -0
  38. data/vendor/ANXS.postgresql/tests/idempotence_check.sh +28 -0
  39. data/vendor/ANXS.postgresql/tests/playbook.yml +9 -0
  40. data/vendor/ANXS.postgresql/{vars/test.yml → tests/vars.yml} +10 -1
  41. data/vendor/ANXS.postgresql/vagrant-inventory +1 -1
  42. data/vendor/ANXS.postgresql/vars/Debian.yml +4 -0
  43. data/vendor/ANXS.postgresql/vars/RedHat.yml +14 -0
  44. data/vendor/ANXS.postgresql/vars/empty.yml +2 -0
  45. data/vendor/geerlingguy.memcached/.gitignore +1 -0
  46. data/vendor/geerlingguy.memcached/.travis.yml +34 -0
  47. data/vendor/geerlingguy.memcached/README.md +53 -0
  48. data/vendor/geerlingguy.memcached/defaults/main.yml +9 -0
  49. data/vendor/geerlingguy.memcached/handlers/main.yml +3 -0
  50. data/vendor/geerlingguy.memcached/meta/.galaxy_install_info +1 -0
  51. data/vendor/geerlingguy.memcached/meta/main.yml +24 -0
  52. data/vendor/geerlingguy.memcached/tasks/main.yml +29 -0
  53. data/vendor/geerlingguy.memcached/tasks/setup-Debian.yml +6 -0
  54. data/vendor/geerlingguy.memcached/tasks/setup-RedHat.yml +3 -0
  55. data/vendor/{bennojoy.memcached/templates/memcached_debian.j2 → geerlingguy.memcached/templates/memcached-Debian.conf.j2} +7 -29
  56. data/vendor/geerlingguy.memcached/templates/memcached-RedHat.conf.j2 +19 -0
  57. data/vendor/geerlingguy.memcached/tests/inventory +1 -0
  58. data/vendor/geerlingguy.memcached/tests/test.yml +5 -0
  59. data/vendor/geerlingguy.memcached/vars/Debian.yml +3 -0
  60. data/vendor/geerlingguy.memcached/vars/RedHat.yml +3 -0
  61. data/vendor/jnv.mosh/meta/.galaxy_install_info +1 -1
  62. data/vendor/jnv.unattended-upgrades/README.md +8 -2
  63. data/vendor/jnv.unattended-upgrades/meta/.galaxy_install_info +1 -1
  64. data/vendor/jnv.unattended-upgrades/tasks/main.yml +5 -0
  65. data/vendor/jnv.unattended-upgrades/tasks/reboot.yml +12 -0
  66. data/vendor/jnv.unattended-upgrades/vars/Debian.yml +1 -1
  67. data/vendor/lxhunter.apt/meta/.galaxy_install_info +1 -1
  68. data/vendor/tersmitten.htop/meta/.galaxy_install_info +1 -1
  69. data/vendor/zzet.rbenv/README.md +10 -10
  70. data/vendor/zzet.rbenv/defaults/main.yml +9 -9
  71. data/vendor/zzet.rbenv/meta/.galaxy_install_info +1 -1
  72. data/vendor/zzet.rbenv/tasks/main.yml +41 -10
  73. metadata +35 -46
  74. data/vendor/ANXS.postgresql/test.yml +0 -8
  75. data/vendor/bennojoy.memcached/README.md +0 -49
  76. data/vendor/bennojoy.memcached/defaults/main.yml +0 -8
  77. data/vendor/bennojoy.memcached/handlers/main.yml +0 -3
  78. data/vendor/bennojoy.memcached/meta/.galaxy_install_info +0 -1
  79. data/vendor/bennojoy.memcached/meta/main.yml +0 -26
  80. data/vendor/bennojoy.memcached/tasks/main.yml +0 -30
  81. data/vendor/bennojoy.memcached/templates/memcached_redhat.j2 +0 -5
  82. data/vendor/bennojoy.memcached/vars/main.yml +0 -14
  83. data/vendor/nodesource.node/Dockerfile +0 -16
  84. data/vendor/nodesource.node/LICENSE.md +0 -11
  85. data/vendor/nodesource.node/README.md +0 -46
  86. data/vendor/nodesource.node/defaults/main.yml +0 -3
  87. data/vendor/nodesource.node/handlers/main.yml +0 -2
  88. data/vendor/nodesource.node/meta/.galaxy_install_info +0 -1
  89. data/vendor/nodesource.node/meta/main.yml +0 -18
  90. data/vendor/nodesource.node/role.yml +0 -6
  91. data/vendor/nodesource.node/tasks/main.yml +0 -26
  92. data/vendor/nodesource.node/templates/etc/apt/preferences.d/deb_nodesource_com_node.pref.2 +0 -5
  93. data/vendor/nodesource.node/tests/localhosts +0 -2
  94. data/vendor/nodesource.node/vars/main.yml +0 -2
  95. data/vendor/williamyeh.nodejs/.gitignore +0 -1
  96. data/vendor/williamyeh.nodejs/LICENSE +0 -22
  97. data/vendor/williamyeh.nodejs/README.md +0 -107
  98. data/vendor/williamyeh.nodejs/Vagrantfile +0 -33
  99. data/vendor/williamyeh.nodejs/circle.yml +0 -32
  100. data/vendor/williamyeh.nodejs/defaults/main.yml +0 -17
  101. data/vendor/williamyeh.nodejs/files/nodesource.gpg.key +0 -52
  102. data/vendor/williamyeh.nodejs/meta/.galaxy_install_info +0 -1
  103. data/vendor/williamyeh.nodejs/meta/main.yml +0 -27
  104. data/vendor/williamyeh.nodejs/tasks/main.yml +0 -19
  105. data/vendor/williamyeh.nodejs/tasks/set-role-variables.yml +0 -15
  106. data/vendor/williamyeh.nodejs/tasks/use-apt.yml +0 -88
  107. data/vendor/williamyeh.nodejs/tasks/use-yum.yml +0 -34
  108. data/vendor/williamyeh.nodejs/test/Dockerfile-centos6 +0 -29
  109. data/vendor/williamyeh.nodejs/test/Dockerfile-centos7 +0 -29
  110. data/vendor/williamyeh.nodejs/test/Dockerfile-debian7 +0 -29
  111. data/vendor/williamyeh.nodejs/test/Dockerfile-debian8 +0 -29
  112. data/vendor/williamyeh.nodejs/test/Dockerfile-ubuntu12.04 +0 -29
  113. data/vendor/williamyeh.nodejs/test/Dockerfile-ubuntu14.04 +0 -29
  114. data/vendor/williamyeh.nodejs/test.yml +0 -12
@@ -0,0 +1,4 @@
1
+ ---
2
+ postgresql_service_name: "postgresql"
3
+
4
+ postgresql_bin_directory: /usr/bin
@@ -0,0 +1,14 @@
1
+ ---
2
+ # Using a different cluster name could cause problems with SELinux.
3
+ # See /usr/lib/systemd/system/postgresql-*.service
4
+ postgresql_cluster_name: "data"
5
+ postgresql_service_name: "postgresql-{{ postgresql_version }}"
6
+
7
+ postgresql_varlib_directory_name: "pgsql"
8
+
9
+ # Used to execute initdb
10
+ postgresql_bin_directory: "/usr/pgsql-{{postgresql_version}}/bin"
11
+
12
+ postgresql_unix_socket_directories:
13
+ - "{{ postgresql_pid_directory }}"
14
+ - /tmp
@@ -0,0 +1,2 @@
1
+ ---
2
+ # This file intentionally does not define any variables.
@@ -0,0 +1 @@
1
+ .DS_Store
@@ -0,0 +1,34 @@
1
+ ---
2
+ language: python
3
+ python: "2.7"
4
+
5
+ env:
6
+ - SITE=test.yml
7
+
8
+ before_install:
9
+ - sudo apt-get update -qq
10
+ - sudo apt-get install -y curl
11
+
12
+ install:
13
+ # Install Ansible.
14
+ - pip install ansible
15
+
16
+ # Add ansible.cfg to pick up roles path.
17
+ - "{ echo '[defaults]'; echo 'roles_path = ../'; } >> ansible.cfg"
18
+
19
+ script:
20
+ # Check the role/playbook's syntax.
21
+ - "ansible-playbook -i tests/inventory tests/$SITE --syntax-check"
22
+
23
+ # Run the role/playbook with ansible-playbook.
24
+ - "ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo"
25
+
26
+ # Run the role/playbook again, checking to make sure it's idempotent.
27
+ - >
28
+ ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo
29
+ | grep -q 'changed=0.*failed=0'
30
+ && (echo 'Idempotence test: pass' && exit 0)
31
+ || (echo 'Idempotence test: fail' && exit 1)
32
+
33
+ # Check the version of Memcached (if this output fails, it's not running).
34
+ - memcached -h | head -1
@@ -0,0 +1,53 @@
1
+ # Ansible Role: Memcached
2
+
3
+ [![Build Status](https://travis-ci.org/geerlingguy/ansible-role-memcached.svg?branch=master)](https://travis-ci.org/geerlingguy/ansible-role-memcached)
4
+
5
+ An Ansible Role that installs Memcached on RedHat/CentOS or Debian/Ubuntu Linux.
6
+
7
+ ## Requirements
8
+
9
+ None.
10
+
11
+ ## Role Variables
12
+
13
+ Available variables are listed below, along with default values (see `defaults/main.yml`):
14
+
15
+ memcached_user: memcache
16
+
17
+ The user under which the Memcached daemon will run.
18
+
19
+ memcached_port: 11211
20
+ memcached_listen_ip: 127.0.0.1
21
+
22
+ The port and IP address (127.0.0.1 for localhost) on which Memcached will listen for requests.
23
+
24
+ memcached_memory_limit: 64
25
+ memcached_connections: 1024
26
+
27
+ Memcached limits. The maximum amount of RAM `memcached` will consume (64MB is the default), and the maximum number of simultaneous connections memcached will handle.
28
+
29
+ memcached_log_file: /var/log/memcached.log
30
+
31
+ The location of the memcached log file.
32
+
33
+ memcached_log_verbosity: ""
34
+
35
+ Normally memcached does not log anything. Change to "-v" to enable logging or to "-vv" for debug logging.
36
+
37
+ ## Dependencies
38
+
39
+ None.
40
+
41
+ ## Example Playbook
42
+
43
+ - hosts: cache
44
+ roles:
45
+ - { role: geerlingguy.memcached }
46
+
47
+ ## License
48
+
49
+ MIT / BSD
50
+
51
+ ## Author Information
52
+
53
+ This role was created in 2014 by [Jeff Geerling](http://jeffgeerling.com/), author of [Ansible for DevOps](http://ansiblefordevops.com/).
@@ -0,0 +1,9 @@
1
+ ---
2
+ memcached_port: 11211
3
+ memcached_listen_ip: 127.0.0.1
4
+
5
+ memcached_memory_limit: 64
6
+ memcached_connections: 1024
7
+
8
+ memcached_log_file: /var/log/memcached.log
9
+ memcached_log_verbosity: ""
@@ -0,0 +1,3 @@
1
+ ---
2
+ - name: restart memcached
3
+ service: name=memcached state=restarted
@@ -0,0 +1 @@
1
+ {install_date: 'Wed Jan 20 20:34:04 2016', version: 1.0.4}
@@ -0,0 +1,24 @@
1
+ ---
2
+ dependencies: []
3
+
4
+ galaxy_info:
5
+ author: geerlingguy
6
+ description: Memcached for Linux
7
+ company: "Midwestern Mac, LLC"
8
+ license: "license (BSD, MIT)"
9
+ min_ansible_version: 1.4
10
+ platforms:
11
+ - name: EL
12
+ versions:
13
+ - 6
14
+ - 7
15
+ - name: Ubuntu
16
+ versions:
17
+ - precise
18
+ - trusty
19
+ - name: Debian
20
+ versions:
21
+ - all
22
+ categories:
23
+ - web
24
+ - database
@@ -0,0 +1,29 @@
1
+ ---
2
+ # Include variables and define needed variables.
3
+ - name: Include OS-specific variables.
4
+ include_vars: "{{ ansible_os_family }}.yml"
5
+
6
+ - name: Define memcached_user.
7
+ set_fact:
8
+ memcached_user: "{{ __memcached_user }}"
9
+ when: memcached_user is not defined
10
+
11
+ # Setup/install tasks.
12
+ - include: setup-RedHat.yml
13
+ when: ansible_os_family == 'RedHat'
14
+
15
+ - include: setup-Debian.yml
16
+ when: ansible_os_family == 'Debian'
17
+
18
+ # Configure Memcached.
19
+ - name: Copy Memcached configuration.
20
+ template:
21
+ src: memcached-{{ ansible_os_family }}.conf.j2
22
+ dest: "{{ memcached_config_file }}"
23
+ owner: root
24
+ group: root
25
+ mode: 0644
26
+ notify: restart memcached
27
+
28
+ - name: Ensure Memcached is started and set to run on startup.
29
+ service: name=memcached state=started enabled=yes
@@ -0,0 +1,6 @@
1
+ ---
2
+ - name: Update apt cache.
3
+ apt: update_cache=yes cache_valid_time=86400
4
+
5
+ - name: Install Memcached.
6
+ apt: name=memcached state=installed
@@ -0,0 +1,3 @@
1
+ ---
2
+ - name: Install Memcached.
3
+ yum: name=memcached state=installed
@@ -1,49 +1,27 @@
1
- # memcached default config file
2
- # 2003 - Jay Bonci <jaybonci@debian.org>
3
- # This configuration file is read by the start-memcached script provided as
4
- # part of the Debian GNU/Linux distribution.
5
-
6
1
  # Run memcached as a daemon. This command is implied, and is not needed for the
7
- # daemon to run. See the README.Debian that comes with this package for more
8
- # information.
2
+ # daemon to run.
9
3
  -d
10
4
 
11
5
  # Log memcached's output to /var/log/memcached
12
- logfile /var/log/memcached.log
13
-
14
- # Be verbose
15
- # -v
16
-
17
- # Be even more verbose (print client commands as well)
18
- # -vv
6
+ logfile {{ memcached_log_file }}
7
+ {{ memcached_log_verbosity }}
19
8
 
20
9
  # Start with a cap of 64 megs of memory. It's reasonable, and the daemon default
21
10
  # Note that the daemon will grow to this size, but does not start out holding this much
22
11
  # memory
23
- -m {{ memcached_cache_size }}
12
+ -m {{ memcached_memory_limit }}
24
13
 
25
14
  # Default connection port is 11211
26
15
  -p {{ memcached_port }}
27
16
 
28
17
  # Run the daemon as root. The start-memcached will default to running as root if no
29
18
  # -u command is present in this config file
30
- -u memcache
19
+ -u {{ memcached_user }}
31
20
 
32
21
  # Specify which IP address to listen on. The default is to listen on all IP addresses
33
22
  # This parameter is one of the only security measures that memcached has, so make sure
34
23
  # it's listening on a firewalled interface.
35
- -l {{ memcached_listen_address }}
24
+ -l {{ memcached_listen_ip }}
36
25
 
37
26
  # Limit the number of simultaneous incoming connections. The daemon default is 1024
38
- -c {{ memcached_max_conn }}
39
-
40
- # Lock down all paged memory. Consult with the README and homepage before you do this
41
- # -k
42
-
43
- # Return error when memory is exhausted (rather than removing items)
44
- # -M
45
-
46
- # Maximize core file limit
47
- # -r
48
-
49
-
27
+ -c {{ memcached_connections }}
@@ -0,0 +1,19 @@
1
+ # Default connection port is 11211
2
+ PORT="{{ memcached_port }}"
3
+
4
+ # The user to run memcached as.
5
+ USER="{{ memcached_user }}"
6
+
7
+ # Limit the number of simultaneous incoming connections. The daemon default is 1024.
8
+ MAXCONN="{{ memcached_connections }}"
9
+
10
+ # Start with a cap of 64 megs of memory. It's reasonable, and the daemon default
11
+ # Note that the daemon will grow to this size, but does not start out holding this much
12
+ # memory
13
+ CACHESIZE="{{ memcached_memory_limit }}"
14
+
15
+ # Extra options:
16
+ # -l Specify which IP address to listen on. The default is to listen on all IP addresses
17
+ # This parameter is one of the only security measures that memcached has, so make sure
18
+ # it's listening on a firewalled interface.
19
+ OPTIONS="-l {{ memcached_listen_ip }} {{ memcached_log_verbosity }} >> {{ memcached_log_file }} 2>&1"
@@ -0,0 +1 @@
1
+ localhost
@@ -0,0 +1,5 @@
1
+ ---
2
+ - hosts: localhost
3
+ remote_user: root
4
+ roles:
5
+ - ansible-role-memcached
@@ -0,0 +1,3 @@
1
+ ---
2
+ __memcached_user: memcache
3
+ memcached_config_file: /etc/memcached.conf
@@ -0,0 +1,3 @@
1
+ ---
2
+ __memcached_user: memcached
3
+ memcached_config_file: /etc/sysconfig/memcached
@@ -1 +1 @@
1
- {install_date: 'Tue Nov 17 14:42:14 2015', version: v0.1}
1
+ {install_date: 'Wed Jan 20 20:34:13 2016', version: v0.1}
@@ -16,10 +16,16 @@ If you set `unattended_mail` to an e-mail address, make sure `mailx` command is
16
16
 
17
17
  The role requires unattended-upgrades version 0.70 and newer, which is available since Debian Wheezy and Ubuntu 12.04 respectively. This is due to [Origins Patterns](#origins-patterns) usage; if this is not available on your system, you may use [the first version of the role](https://github.com/jnv/ansible-role-unattended-upgrades/tree/v0.1).
18
18
 
19
+ ### Automatic Reboot
20
+
21
+ If you enable automatic reboot feature (`unattended_automatic_reboot`), the role will install `update-notifier-common` package, which is required for detecting and executing reboot after the upgrade.
22
+
23
+ **NOTE:** This feature is not currently supported on Debian Jessie, due to a missing replacement for the said package. Attempt to enable this feature on unsupported system will cause a failure. See [the discussion in #6](https://github.com/jnv/ansible-role-unattended-upgrades/issues/6) for more details.
24
+
19
25
  ## Role Variables
20
26
 
21
27
  * `unattended_origins_patterns`: array of origins patterns to determine whether the package can be automatically installed, for more details see [Origins Patterns](#origins-patterns) below.
22
- * Default for Debian: `['origin=Debian,archive=${distro_codename},label=Debian-Security']`
28
+ * Default for Debian: `['origin=Debian,codename=${distro_codename},label=Debian-Security']`
23
29
  * Default for Ubuntu: `['origin=Ubuntu,archive=${distro_codename}-security,label=Ubuntu']`
24
30
  * `unattended_package_blacklist`: packages which won't be automatically upgraded
25
31
  * Default: `[]`
@@ -82,7 +88,7 @@ By default, only security updates are allowed for both Ubuntu and Debian. You ca
82
88
  ```yaml
83
89
  # Archive based matching
84
90
  unattended_origins_patterns:
85
- - 'origin=Debian,archive=${distro_codename},label=Debian-Security' # resolves to archive=jessie
91
+ - 'origin=Debian,codename=${distro_codename},label=Debian-Security' # resolves to codename=jessie
86
92
  - 'o=Debian,a=stable'
87
93
  - 'o=Debian,a=stable-updates'
88
94
  - 'o=Debian,a=proposed-updates'
@@ -1 +1 @@
1
- {install_date: 'Mon Nov 16 16:35:20 2015', version: v1.0.1}
1
+ {install_date: 'Wed Jan 20 20:33:27 2016', version: v1.1.1}
@@ -6,6 +6,11 @@
6
6
  apt: pkg=unattended-upgrades state=present
7
7
  tags: unattended
8
8
 
9
+ - name: install reboot dependencies
10
+ include: reboot.yml
11
+ when: unattended_automatic_reboot
12
+ tags: unattended
13
+
9
14
  - name: create APT auto-upgrades configuration
10
15
  copy: >
11
16
  src=auto-upgrades dest=/etc/apt/apt.conf.d/20auto-upgrades
@@ -0,0 +1,12 @@
1
+ ---
2
+ - name: install update-notifier-common
3
+ apt: pkg=update-notifier-common state=present
4
+ register: install_reboot_dependency
5
+ ignore_errors: true
6
+ tags: unattended
7
+
8
+ - name: abort if automatic reboot is unavailable
9
+ fail: msg="The unattended_automatic_reboot option was selected but the system has no means to reboot automatically"
10
+ when: install_reboot_dependency | failed
11
+ tags: unattended
12
+
@@ -1,3 +1,3 @@
1
1
  ---
2
2
  __unattended_origins_patterns:
3
- - 'origin=Debian,archive=${distro_codename},label=Debian-Security'
3
+ - 'origin=Debian,codename=${distro_codename},label=Debian-Security'
@@ -1 +1 @@
1
- {install_date: 'Mon Nov 16 16:35:24 2015', version: master}
1
+ {install_date: 'Wed Jan 20 20:33:48 2016', version: master}
@@ -1 +1 @@
1
- {install_date: 'Tue Nov 17 14:57:00 2015', version: v2.0.1}
1
+ {install_date: 'Wed Jan 20 20:34:15 2016', version: v2.0.1}
@@ -21,37 +21,37 @@ Default variables are:
21
21
  rbenv:
22
22
  env: system
23
23
  version: v0.4.0
24
- ruby_version: 2.2.0
24
+ ruby_version: 2.2.3
25
25
 
26
- rbenv_repo: "git://github.com/sstephenson/rbenv.git"
26
+ rbenv_repo: "https://github.com/sstephenson/rbenv.git"
27
27
 
28
28
  rbenv_plugins:
29
29
  - { name: "rbenv-vars",
30
- repo: "git://github.com/sstephenson/rbenv-vars.git",
30
+ repo: "https://github.com/sstephenson/rbenv-vars.git",
31
31
  version: "v1.2.0" }
32
32
 
33
33
  - { name: "ruby-build",
34
- repo: "git://github.com/sstephenson/ruby-build.git",
35
- version: "v20131225.1" }
34
+ repo: "https://github.com/sstephenson/ruby-build.git",
35
+ version: "v20151028" }
36
36
 
37
37
  - { name: "rbenv-default-gems",
38
- repo: "git://github.com/sstephenson/rbenv-default-gems.git",
38
+ repo: "https://github.com/sstephenson/rbenv-default-gems.git",
39
39
  version: "v1.0.0" }
40
40
 
41
41
  - { name: "rbenv-installer",
42
- repo: "git://github.com/fesplugas/rbenv-installer.git",
42
+ repo: "https://github.com/fesplugas/rbenv-installer.git",
43
43
  version: "8bb9d34d01f78bd22e461038e887d6171706e1ba" }
44
44
 
45
45
  - { name: "rbenv-update",
46
- repo: "git://github.com/rkh/rbenv-update.git",
46
+ repo: "https://github.com/rkh/rbenv-update.git",
47
47
  version: "32218db487dca7084f0e1954d613927a74bc6f2d" }
48
48
 
49
49
  - { name: "rbenv-whatis",
50
- repo: "git://github.com/rkh/rbenv-whatis.git",
50
+ repo: "https://github.com/rkh/rbenv-whatis.git",
51
51
  version: "v1.0.0" }
52
52
 
53
53
  - { name: "rbenv-use",
54
- repo: "git://github.com/rkh/rbenv-use.git",
54
+ repo: "https://github.com/rkh/rbenv-use.git",
55
55
  version: "v1.0.0" }
56
56
 
57
57
  rbenv_root: "{% if rbenv.env == 'system' %}/usr/local/rbenv{% else %}$HOME/.rbenv{% endif %}"
@@ -2,18 +2,18 @@
2
2
  rbenv:
3
3
  env: system
4
4
  version: v0.4.0
5
- ruby_version: 2.2.0
5
+ ruby_version: 2.2.3
6
6
 
7
- rbenv_repo: "git://github.com/sstephenson/rbenv.git"
7
+ rbenv_repo: "https://github.com/sstephenson/rbenv.git"
8
8
 
9
9
  rbenv_plugins:
10
- - { name: "rbenv-vars", repo: "git://github.com/sstephenson/rbenv-vars.git", version: "v1.2.0" }
11
- - { name: "ruby-build", repo: "git://github.com/sstephenson/ruby-build.git", version: "v20150413" }
12
- - { name: "rbenv-default-gems", repo: "git://github.com/sstephenson/rbenv-default-gems.git", version: "v1.0.0" }
13
- - { name: "rbenv-installer", repo: "git://github.com/fesplugas/rbenv-installer.git", version: "22cc96aa45d06faca5958b1aa1688596198407a3" }
14
- - { name: "rbenv-update", repo: "git://github.com/rkh/rbenv-update.git", version: "bf757453498337807a46e24074d29173f1a8abec" }
15
- - { name: "rbenv-whatis", repo: "git://github.com/rkh/rbenv-whatis.git", version: "v1.0.0" }
16
- - { name: "rbenv-use", repo: "git://github.com/rkh/rbenv-use.git", version: "v1.0.0" }
10
+ - { name: "rbenv-vars", repo: "https://github.com/sstephenson/rbenv-vars.git", version: "v1.2.0" }
11
+ - { name: "ruby-build", repo: "https://github.com/sstephenson/ruby-build.git", version: "v20151028" }
12
+ - { name: "rbenv-default-gems", repo: "https://github.com/sstephenson/rbenv-default-gems.git", version: "v1.0.0" }
13
+ - { name: "rbenv-installer", repo: "https://github.com/fesplugas/rbenv-installer.git", version: "22cc96aa45d06faca5958b1aa1688596198407a3" }
14
+ - { name: "rbenv-update", repo: "https://github.com/rkh/rbenv-update.git", version: "bf757453498337807a46e24074d29173f1a8abec" }
15
+ - { name: "rbenv-whatis", repo: "https://github.com/rkh/rbenv-whatis.git", version: "v1.0.0" }
16
+ - { name: "rbenv-use", repo: "https://github.com/rkh/rbenv-use.git", version: "v1.0.0" }
17
17
 
18
18
  rbenv_root: "{% if rbenv.env == 'system' %}/usr/local/rbenv{% else %}~/.rbenv{% endif %}"
19
19
 
@@ -1 +1 @@
1
- {install_date: 'Mon Nov 16 16:35:22 2015', version: 2.1.3}
1
+ {install_date: 'Wed Jan 20 20:33:40 2016', version: 2.1.7}
@@ -18,6 +18,7 @@
18
18
  dest={{ rbenv_root }}
19
19
  version={{ rbenv.version }}
20
20
  accept_hostkey=true
21
+ force=yes
21
22
  when: rbenv.env == "system"
22
23
  tags:
23
24
  - rbenv
@@ -34,6 +35,7 @@
34
35
  dest={{ rbenv_root }}/plugins/{{ item.name }}
35
36
  version={{ item.version }}
36
37
  accept_hostkey=true
38
+ force=yes
37
39
  with_items: rbenv_plugins
38
40
  when: rbenv.env == "system"
39
41
  tags:
@@ -45,10 +47,11 @@
45
47
  dest={{ rbenv_root }}
46
48
  version={{ rbenv.version }}
47
49
  accept_hostkey=true
50
+ force=yes
48
51
  with_items: rbenv_users
49
52
  sudo: true
50
53
  sudo_user: "{{ item }}"
51
- when: not "system" == "{{ rbenv.env }}"
54
+ when: rbenv.env != "system"
52
55
  ignore_errors: true
53
56
  tags:
54
57
  - rbenv
@@ -58,7 +61,7 @@
58
61
  with_items: rbenv_users
59
62
  sudo: true
60
63
  sudo_user: "{{ item }}"
61
- when: not "system" == "{{ rbenv.env }}"
64
+ when: rbenv.env != "system"
62
65
  ignore_errors: true
63
66
  tags:
64
67
  - rbenv
@@ -69,12 +72,13 @@
69
72
  dest={{ rbenv_root }}/plugins/{{ item[1].name }}
70
73
  version={{ item[1].version }}
71
74
  accept_hostkey=true
75
+ force=yes
72
76
  with_nested:
73
77
  - rbenv_users
74
78
  - rbenv_plugins
75
79
  sudo: true
76
80
  sudo_user: "{{ item[0] }}"
77
- when: not "system" == "{{ rbenv.env }}"
81
+ when: rbenv.env != "system"
78
82
  ignore_errors: true
79
83
  tags:
80
84
  - rbenv
@@ -116,7 +120,7 @@
116
120
  with_items: rbenv_users
117
121
  sudo: true
118
122
  sudo_user: "{{ item }}"
119
- when: not "system" == "{{ rbenv.env }}"
123
+ when: rbenv.env != "system"
120
124
  ignore_errors: true
121
125
  tags:
122
126
  - rbenv
@@ -126,7 +130,7 @@
126
130
  with_items: rbenv_users
127
131
  sudo: true
128
132
  sudo_user: "{{ item }}"
129
- when: not "system" == "{{ rbenv.env }}"
133
+ when: rbenv.env != "system"
130
134
  ignore_errors: true
131
135
  tags:
132
136
  - rbenv
@@ -149,11 +153,21 @@
149
153
  tags:
150
154
  - rbenv
151
155
 
156
+ - name: check if current system ruby version is {{ rbenv.ruby_version }}
157
+ shell: $SHELL -lc "rbenv version | cut -d ' ' -f 1 | grep -Fx '{{ rbenv.ruby_version }}'"
158
+ register: ruby_selected
159
+ changed_when: false
160
+ ignore_errors: yes
161
+ always_run: yes
162
+ when: rbenv.env == "system"
163
+ tags:
164
+ - rbenv
165
+
152
166
  - name: set ruby {{ rbenv.ruby_version }} for system
153
167
  shell: bash -lc "rbenv global {{ rbenv.ruby_version }} && rbenv rehash"
154
168
  when:
155
169
  - rbenv.env == "system"
156
- - ruby_installed.rc != 0
170
+ - ruby_selected.rc != 0
157
171
  tags:
158
172
  - rbenv
159
173
 
@@ -162,7 +176,7 @@
162
176
  sudo: true
163
177
  sudo_user: "{{ item }}"
164
178
  with_items: rbenv_users
165
- when: not "system" == "{{ rbenv.env }}"
179
+ when: rbenv.env != "system"
166
180
  register: ruby_installed
167
181
  changed_when: false
168
182
  ignore_errors: yes
@@ -177,19 +191,36 @@
177
191
  with_together:
178
192
  - ruby_installed.results
179
193
  - rbenv_users
180
- when: (not "system" == "{{ rbenv.env }}") and (item[0].rc != 0)
194
+ when:
195
+ - rbenv.env != "system"
196
+ - item[0].rc != 0
181
197
  ignore_errors: true
182
198
  tags:
183
199
  - rbenv
184
200
 
201
+ - name: check if user ruby version is {{ rbenv.ruby_version }}
202
+ shell: $SHELL -lc "rbenv version | cut -d ' ' -f 1 | grep -Fx '{{ rbenv.ruby_version }}'"
203
+ sudo: true
204
+ sudo_user: "{{ item }}"
205
+ with_items: rbenv_users
206
+ when: rbenv.env != "system"
207
+ register: ruby_selected
208
+ changed_when: false
209
+ ignore_errors: yes
210
+ always_run: yes
211
+ tags:
212
+ - rbenv
213
+
185
214
  - name: set ruby {{ rbenv.ruby_version }} for select users
186
215
  shell: $SHELL -lc "rbenv global {{ rbenv.ruby_version }} && rbenv rehash"
187
216
  sudo: true
188
217
  sudo_user: "{{ item[1] }}"
189
218
  with_together:
190
- - ruby_installed.results
219
+ - ruby_selected.results
191
220
  - rbenv_users
192
- when: (not "system" == "{{ rbenv.env }}") and (item[0].rc != 0)
221
+ when:
222
+ - rbenv.env != "system"
223
+ - item[0].rc != 0
193
224
  ignore_errors: true
194
225
  tags:
195
226
  - rbenv