Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

playbook fails creating /etc/fstab #37

Closed
damonbreeden opened this issue Mar 5, 2021 · 1 comment
Closed

playbook fails creating /etc/fstab #37

damonbreeden opened this issue Mar 5, 2021 · 1 comment

Comments

@damonbreeden
Copy link

trying to set up a system with 2 disks in mdadm raid, playbook gets to place templates in /etc and fails:

failed: [ip_address] (item={'src': 'fstab'}) => {"ansible_loop_var": "item", "changed": false, "item": {"src": "fstab"}, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'fs'"}
changed: [ip_address => (item={'src': 'crypttab', 'dest': 'crypttab'})

I believe because /dev/sd{a,b}1 has no filesystem (it's a boot partition)

~# lsblk -f
NAME      FSTYPE      LABEL                UUID                                 MOUNTPOINT
loop0     squashfs                                                              /lib/live/mount/rootfs/img.current.sq
sda                                                                             
├─sda1                                                                          
└─sda2    linux_raid_ 163-172-251-100:root 5d8518c2-7589-668b-d736-6c8a724d21a5 
  └─md127 ext4                             9a54cc12-4af5-43af-859b-59e23735ffbd /mnt/bootstrap
sdb                                                                             
├─sdb1                                                                          
└─sdb2    linux_raid_ 163-172-251-100:root 5d8518c2-7589-668b-d736-6c8a724d21a5 
  └─md127 ext4                             9a54cc12-4af5-43af-859b-59e23735ffbd /mnt/bootstrap
@damonbreeden
Copy link
Author

my bad, this was a stray mount: / in the disks (not md) declaration:

- device: '/dev/sda'
  partitions:
    - num: 1
      size: 1M
      type: ef02
    - num: 2
      type: 8300
      mount: /

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant