---

- name: Create setup-www script
  remote_user: "{{ app_user }}"
  template: >
    src=scripts/setup-www.j2
    dest=bin/setup-www
    mode="u=rwx,g=r,o=r"

- name: Setup welcome message
  become: yes
  template: >
    src=etc/motd.j2
    dest=/etc/update-motd.d/60-dosomething
    mode="u=rwx,g=rx,o=rx"

- name: Add custom vagrant hosts
  become: yes
  lineinfile: >
    dest=/etc/hosts
    line="{{ item }}"
  with_items:
    - "10.0.2.2 northstar.dev"

---

- name: Create setup-www script
  remote_user: "{{ app_user }}"
  template: >
    src=scripts/setup-www.j2
    dest=bin/setup-www
    mode="u=rwx,g=r,o=r"

- name: Setup welcome message
  become: yes
  template: >
    src=etc/motd.j2
    dest=/etc/update-motd.d/60-dosomething
    mode="u=rwx,g=rx,o=rx"

- name: Add custom vagrant hosts
  become: yes
  lineinfile: >
    dest=/etc/hosts
    line="{{ item }}"
  with_items:
    - "10.0.2.2 northstar.dev"

- name: Install NFS tools
  become: yes
  apt: name={{ item }} state=latest
  with_items:
    - nfs-common
    - nfs-kernel-server

Install NFS tools for Phoenix Vagrant.
Install NFS tools for Phoenix Vagrant.
