Skip to content

Instantly share code, notes, and snippets.

@dckc
Created October 25, 2013 17:03
Show Gist options
  • Select an option

  • Save dckc/7158102 to your computer and use it in GitHub Desktop.

Select an option

Save dckc/7158102 to your computer and use it in GitHub Desktop.
> ansible-playbook -i inventory install_R.yml --ask-sudo-pass
sudo password:
ERROR: Syntax Error while loading YAML script, install_R.yml
Note: The error may actually appear before this position: line 10, column 7
- shell: zypper lr devel:languages:R:patched | grep URI ||
zypper ar --type yum ${r_repo} devel:languages:R:patched
---
- name: Ensure R for SLES 11 is installed
hosts: heron_id_db
connection: local
sudo: yes
vars:
r_repo: http://download.opensuse.org/repositories/devel:/languages:/R:/patched/SLE_11/
tasks:
- shell: zypper lr devel:languages:R:patched | grep URI ||
zypper ar --type yum ${r_repo} devel:languages:R:patched
- command: zypper refresh
- zypper: package=R-patched state=present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment