| | |
| | | path: /etc/exports |
| | | state: present |
| | | regexp: "^/nfs" |
| | | line: "/nfs *(insecure,rw,root_squash,no_wdelay,sync)" |
| | | line: "/nfs *(insecure,rw,no_root_squash,no_wdelay,sync)" |
| | | |
| | | - name: 'Ensure nfs-server is restarted and running' |
| | | service: |
| | |
| | | name: ansible |
| | | state: latest |
| | | |
| | | - name: Ensure NFS share is mounted in HANA and S/4HANA Hosts |
| | | hosts: hanas:s4hanas |
| | | become: True |
| | | gather_facts: True |
| | | tasks: |
| | | |
| | | - name: Ensure Software directory exists |
| | | file: |
| | | path: "/software" |
| | | state: directory |
| | | |
| | | - name: Ensure NFS share is mounted |
| | | mount: |
| | | path: "/software" |
| | | src: "bastion:/nfs" |
| | | fstype: nfs4 |
| | | opts: "rw,bg,hard,_netdev" |
| | | state: mounted |
| | | |
| | | |
| | | - name: Deploy Ansible Tower |
| | | hosts: towers |
| | | gather_facts: False |