SORU
3 NİSAN 2014, PERŞEMBE


Nasıl bir dizin Ansible oluşturmak için?

Nasıl debian tabanlı bir sistem Ansible bir senaryo kullanarak /srv dizin www oluşturmak için?

CEVAP
3 NİSAN 2014, PERŞEMBE


Dosya modül istiyorum. Bir dizin oluşturmak için state=directory seçeneği belirtmeniz gerekir :

- name: Creates directory
  file: path=/src/www state=directory

http://docs.ansible.com/file_module.html diğer seçenekleri görebilirsiniz

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • LG Mobile Global

    LG Mobile Gl

    2 EYLÜL 2010
  • RobertDuskin

    RobertDuskin

    12 HAZİRAN 2008
  • Smith Micro Graphics

    Smith Micro

    15 Mayıs 2008