ansible

Log | Files | Refs | README

main.yml (648B)


      1 ---
      2 - name: Clone scripts repo
      3   git:
      4     repo: "https://gitea.learningunix.net/cjr/scripts.git"
      5     dest: "/home/cjr/.scripts"
      6     update: yes
      7   become: false
      8 
      9 - name: Deploy pushover credentials
     10   template:
     11     src: pushover.j2
     12     dest: /home/cjr/.pushover
     13     owner: cjr
     14     group: cjr
     15     mode: '0600'
     16   become: false
     17 
     18 - name: Source .pushover in .bashrc
     19   lineinfile:
     20     path: /home/cjr/.bashrc
     21     line: "source ~/.pushover"
     22     create: yes
     23   become: false
     24 
     25 - name: Send test notification
     26   shell: source /home/cjr/.pushover && /home/cjr/.scripts/notify.sh "Ansible" "Deployment complete"
     27   args:
     28     executable: /bin/bash
     29   become: false
     30