Skip to content
Snippets Groups Projects
Select Git revision
  • 0a605e6106ac149c6e5baebac97f99523b5347ee
  • master default protected
  • ansibleBranch
  • AURIN
4 results

main.yaml

Blame
  • main.yaml 547 B
    - name: example copying file with owner and permissions
      copy:
        src: /home/alex/CCC/project/comp90024/Ansible/install_couchdb.sh
        dest: /home/ubuntu/install_couchdb.sh
        owner: ubuntu
        group: ubuntu
        mode: 0644
    
    - name: change script permissions
      become: yes
      shell: |
        sudo chmod 777 /home/ubuntu/install_couchdb.sh
    - name: install couchdb
      become: yes
      command: sh /home/ubuntu/install_couchdb.sh
    
    - name: Run script cluster
      script: sh /home/alex/CCC/project/comp90024/Ansible/cluster_setup.sh COUCHGROUP[0] COUCHGROUP[1]