after loading the rvm when i tried to install the rvm it not installing
i have shared the script file
- name: Download and install RVM
get_url:
url: "https://get.rvm.io"
dest: "/tmp/rvm_install.sh"
- name: Run RVM installation script
script:
cmd: "/bin/bash /tmp/rvm_install.sh"
- name: Load RVM environment
ansible.builtin.shell:
cmd: "~/.rvm/scripts/rvm"
executable: /bin/bash
- name: Install RVM requirements
ansible.builtin.shell:
cmd: "source ~/.rvm/scripts/rvm && rvm requirements"
executable: /bin/bash
#- name: Install RVM
# shell: sudo chmod +x /etc/profile.d/rvm.sh
# become: yes
# shell: "curl -sSL https://get.rvm.io | bash -s stable; source ~/.rvm/scripts/rvm; rvm requirements"
# shell: curl -sSL https://get.rvm.io | bash -s stable
#- name: load rvm
# shell: bash -c "source ~/.rvm/scripts/rvm"
#- name: installing reuqiemnmet of the rvm
# ansible.builtin.shell:
# cmd: "rvm install 3.1.2"
# executable: bin/bash
- name: installing rvm
command: rvm install 3.1.2
type or paste code here