Substitute include by include_task
This commit is contained in:
@@ -10,14 +10,14 @@
|
|||||||
ssh_key_bits: 4096
|
ssh_key_bits: 4096
|
||||||
ssh_key_file: .ssh/id_rsa
|
ssh_key_file: .ssh/id_rsa
|
||||||
|
|
||||||
|
|
||||||
- name: install rvm prerequires
|
- name: install rvm prerequires
|
||||||
apt: pkg="{{ item }}" cache_valid_time=3600 update_cache=yes state=present
|
apt: pkg="{{ item }}" cache_valid_time=3600 update_cache=yes state=present
|
||||||
with_items: "{{ ruby_req_packages }}"
|
with_items: "{{ ruby_req_packages }}"
|
||||||
|
|
||||||
|
|
||||||
- name: Install RVM
|
- name: Install RVM
|
||||||
include: 'rvm.yml'
|
include_task: 'rvm.yml'
|
||||||
become: yes
|
become: yes
|
||||||
become_user: "{{ rvm1_user }}"
|
become_user: "{{ rvm1_user }}"
|
||||||
|
|
||||||
@@ -25,11 +25,11 @@
|
|||||||
# command: '{{ rvm1_rvm }} install requirements'
|
# command: '{{ rvm1_rvm }} install requirements'
|
||||||
# changed_when: False
|
# changed_when: False
|
||||||
# when: rvm1_rubies
|
# when: rvm1_rubies
|
||||||
|
|
||||||
|
|
||||||
- name: Install rubies
|
- name: Install rubies
|
||||||
command: '/home/{{ rvm1_user }}/.rvm/bin/rvm install requirements'
|
command: '/home/{{ rvm1_user }}/.rvm/bin/rvm install requirements'
|
||||||
when: rvm1_rubies
|
when: rvm1_rubies
|
||||||
|
|
||||||
|
|
||||||
- name: Detect if rubies are installed
|
- name: Detect if rubies are installed
|
||||||
@@ -53,13 +53,6 @@
|
|||||||
|
|
||||||
|
|
||||||
- name: Install Ruby and Gems
|
- name: Install Ruby and Gems
|
||||||
include: 'rubies.yml'
|
include_task: 'rubies.yml'
|
||||||
become: yes
|
become: yes
|
||||||
become_user: "{{ rvm1_user }}"
|
become_user: "{{ rvm1_user }}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user