state: "link"
EOF
+if [[ "$2" == *"."* ]];then
+ # File already contains a dot
+read -d '' LINK_THIS_FILE << EOF
+
+ - name: symlink $2
+ ansible.builtin.file:
+ src: "$LINKFILES/$2"
+ dest: "$HOME/$2"
+ state: "link"
+EOF
+
+
+fi
+
echo " $LINK_THIS_FILE" >> $TASKFILE
echo "$2 added to symlinks in $TASKFILE"
echo "Run 'dot apply' to create all configured symlinks"