main.yml 771 Bytes
Newer Older
1

Alain Takoudjou's avatar
Alain Takoudjou committed
2
  - include: uploadlog.yml
3

4 5
  - include: rerun.yml

6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
  - name: Create /etc/opt dir
    file: dest=/etc/opt mode=775 state=directory

  - name: Download configuration
    get_url: url=http://10.0.2.100/netconfig.sh dest=/etc/opt/netconfig.sh mode=755
    ignore_errors: True

  - name: stat /etc/opt/netconfig.sh
    stat: path=/etc/opt/netconfig.sh
    register: netconfig_file

  - name: replace /etc/rc.local
    copy: src=/etc/opt/netconfig.sh dest=/etc/rc.local mode=755
    when: netconfig_file.stat.exists == True

  - name: call netconfig.sh
    command: /etc/opt/netconfig.sh 
    when: netconfig_file.stat.exists == True
    ignore_errors: True

26
  - include: network.yml
27 28 29
  - include: hostname.yml
  - include: user.yml
  - include: sudo.yml
30
  - include: ssh.yml