Skip to content
Snippets Groups Projects
custom_pss.yml 1.77 KiB
Newer Older
- name: add a software folder for PSS and MPS and infra
    path: "/softwares/{{ item }}"
    owner: "{{ pss_nas_softs_owner }}"
    group: "{{ pss_nas_softs_owner }}"
    mode: 0755
    state: directory
  with_items:
    - mps
    - pss
    - infra

- name: download PSS softwares
  get_url:
    url: "{{ pss_nas_software_repo_url }}/{{ item }}"
    dest: "/softwares/pss/{{ item }}"
    mode: 0444
    url_username: pss-soft-user
    url_password: "{{ pss_soft_artifactory_password  }}"
  with_items: "{{ pss_nas_software_files }}"

- name: download MPS softwares
  get_url:
    url: "{{ mps_nas_software_repo_url }}/{{ item }}"
    dest: "/softwares/mps/{{ item }}"
    mode: 0444
    url_username: pss-soft-user
    url_password: "{{ pss_soft_artifactory_password  }}"
  with_items: "{{ mps_nas_software_files }}"

- name: download INFRA softwares
  get_url:
    url: "{{ infra_nas_software_repo_url }}/{{ item }}"
    dest: "/softwares/infra/{{ item }}"
    mode: 0444
    url_username: pss-soft-user
    url_password: "{{ pss_soft_artifactory_password  }}"
  with_items: "{{ infra_nas_software_files }}"

Stephane Armanet's avatar
Stephane Armanet committed
- name: add  uploads folder
  file:
    path: /uploads
    owner: "{{ pss_nas_softs_owner }}"
    group: "{{ pss_nas_softs_owner }}"
    mode: 0755
    state: directory
Stephane Armanet's avatar
Stephane Armanet committed

- name: add samba specific options file fo PSS NAS
  template:
    src: smb-pss.conf.j2
    dest: /etc/samba/smb-pss.conf
    owner: root
    group: root
    mode: 0644
- name: manage ssh allowed users for PSS NAS
  template:
    src: sshd_config.j2
    dest: /etc/ssh/sshd_config
    owner: root
    group: root
    mode: 0640
  notify: restart_ssh

- name: add script to create home folders for PSS users
  template:
    src: create_home
    dest: /usr/local/bin/create_home
    owner: root
    group: root
    mode: 0755