Skip to content

Ansible: Just mount an existing filesystem

There is no easy way to "just mount" an existing filesystem in Ansible, using the "mount" module. I just want to mount an already defined mount point, and don't really care about all the configuration here. But if I try this:

- name: Mount /backup filesystem
  mount:
    path: "/backup"
    state: mounted

I end up with the following error message:

TASK [Mount /backup filesystem] ********************
fatal: [xxx.xxx.xxx.xxx]: FAILED! => {"changed": false, "msg": "state is mounted but all of the following are missing: src, fstype"}

Ansible requires to configure the mount point all the way. Also specified in the documentation:

  • "fstype" is required when state is "present" or "mounted"
  • "state" == "mounted": the device will be actively mounted and appropriately configured in fstab. If the mount point is not present, the mount point will be created.

Not what I want here!

 

Continue reading "Ansible: Just mount an existing filesystem"
  • Twitter
  • Bookmark Ansible: Just mount an existing filesystem at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Ansible: Just mount an existing filesystem
  • Bloglines Ansible: Just mount an existing filesystem
  • Technorati Ansible: Just mount an existing filesystem
  • Fark this: Ansible: Just mount an existing filesystem
  • Bookmark Ansible: Just mount an existing filesystem at YahooMyWeb
  • Bookmark Ansible: Just mount an existing filesystem at Furl.net
  • Bookmark Ansible: Just mount an existing filesystem at reddit.com
  • Bookmark Ansible: Just mount an existing filesystem at blinklist.com
  • Bookmark Ansible: Just mount an existing filesystem at Spurl.net
  • Bookmark Ansible: Just mount an existing filesystem at Simpy.com
  • Bookmark Ansible: Just mount an existing filesystem at blogmarks
  • Bookmark Ansible: Just mount an existing filesystem with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca