Skip to content

Instantly share code, notes, and snippets.

@gcalcettebr
Created January 4, 2019 20:30
Show Gist options
  • Save gcalcettebr/2c35f11d751d637f65c57eadddc3385f to your computer and use it in GitHub Desktop.
Save gcalcettebr/2c35f11d751d637f65c57eadddc3385f to your computer and use it in GitHub Desktop.
---
- name: Install Veritas Backup
hosts: all
vars:
secret: ## <Insert a Vault Password =) >
tasks:
- name: install dependencies
apt:
name: "{{ packages }}"
state: present
vars:
packages:
- tar
- unzip
- name: Create Temp Dir
file:
path: ~/ralus
state: directory
mode: 0755
- name: Download RALUS RMALS and unarchive this
unarchive:
src: ##< Inset the latest Ralu Rmals link to donwload and unzip EX: RALUS_RMALS-1188.1650.tar.gz >
dest: ~/ralus
remote_src: yes
- name: Install Veritas Backup Agent
shell: cd ~/ralus && printf '\n\n\n\n\n\n\nn\n\n\n\n\n\n' | ./installralus
register: check_install
failed_when: check_install.rc > 1
- name: Setting a blank password for backup user
shell: passwd -d backup
- name: Add user backup to group beoper
user:
name: backup
groups: beoper
- name: set password for user backup
shell: printf '{{ secret }}\n{{ secret }}\n' | passwd backup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment